/* M·Y·U Dream Common Styles */
/* 공통 스타일 - 모든 페이지에서 사용되는 중복 코드 제거를 위해 작성 */

/* Global Base Styles */
body {
    font-family: 'Noto Sans KR', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

/* Common Gradient Text Styles */
.gradient-text {
    background: linear-gradient(45deg, #ff0040, #00ffff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-animated {
    background: linear-gradient(45deg, #ff0040, #00ffff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 3s ease infinite;
}

a.gradient-text {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

a.gradient-text:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* Character-specific gradient variants */
.gradient-text-characters {
    background: linear-gradient(45deg, #8b5cf6, #a855f7, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-mir {
    background: linear-gradient(45deg, #00ff88, #00ffff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-yok {
    background: linear-gradient(45deg, #9400d3, #4b0082, #9400d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-uta {
    background: linear-gradient(45deg, #ff1493, #ff69b4, #ffb6c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Common Animations */
@keyframes gradientMove {
    0%, 100% { filter: hue-rotate(0deg); }
    25% { filter: hue-rotate(90deg); }
    50% { filter: hue-rotate(180deg); }
    75% { filter: hue-rotate(270deg); }
}

@keyframes bgShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

/* Common Card Styles */
.activity-card, .music-card, .story-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.activity-card:hover, .music-card:hover, .story-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Mir.ai specific card styles */
.activity-card {
    border-color: rgba(0, 255, 136, 0.2);
}

.activity-card:hover {
    border-color: rgba(0, 255, 136, 0.4);
}

/* Yok.ai specific card styles */
.story-card {
    border-color: rgba(148, 0, 211, 0.2);
}

.story-card:hover {
    border-color: rgba(148, 0, 211, 0.4);
    box-shadow: 0 10px 30px rgba(148, 0, 211, 0.2);
}

/* Uta.i specific card styles */
.music-card {
    border-color: rgba(255, 20, 147, 0.2);
}

.music-card:hover {
    border-color: rgba(255, 20, 147, 0.4);
    box-shadow: 0 10px 30px rgba(255, 20, 147, 0.1);
}

/* Common Background Patterns */
.bg-main {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a, #1a0a2a, #0a0a0a);
    animation: bgShift 20s ease infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gradient-text {
        font-size: 1.5rem;
    }
    
    .activity-card, .music-card, .story-card {
        margin-bottom: 1rem;
    }
}

/* Accessibility & Focus Styles */
:focus {
    outline: 2px solid #9333ea;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #9333ea;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.3);
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.focus\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Utility Classes */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}