/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for Color Scheme - Dark Mode as Default */
:root {
    --primary-color: #A08B6F;
    --secondary-color: #2A2520;
    --background-color: #1A1815;
    --text-color: #E5E5E5;
    --accent-color: #3A342C;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --padding: 16px;
    --button-height: 48px;
    --transition: all 0.3s ease;
}

/* Typography */
body {
    font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main Container */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: var(--padding);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Profile Section */
.profile-section {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--background-color) 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 0.6rem;
}

.profile-image-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.channel-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.channel-subtitle {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 400;
}

/* Social Media Icons integrated in Profile Section */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 0;
    margin-top: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--background-color);
    border-radius: 50%;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.youtube-icon:hover {
    background-color: #FF0000;
    color: white;
}

.threads-icon:hover {
    background-color: #000000;
    color: white;
}

.instagram-icon:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

/* Links Section */
.links-section {
    flex: 1;
}

.links-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: var(--button-height);
    background-color: var(--secondary-color);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.link-button:hover::before {
    left: 100%;
}

.link-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.link-button:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.2);
}

.link-button:active {
    transform: translateY(0);
}

.link-emoji {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.link-text {
    flex: 1;
    text-align: left;
    margin-left: 0.5rem;
}

.link-arrow {
    font-size: 1.2rem;
    opacity: 0.7;
    transition: var(--transition);
}

.link-button:hover .link-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Main link button styles */
.main-link {
    padding: 1rem 1.5rem;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.main-link .link-text {
    flex: 1;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
}

.main-link:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Specific link button styles */
.youtube-link:hover {
    background-color: #FF0000;
    border-color: #FF0000;
}

.threads-link:hover {
    background-color: #000000;
    border-color: #000000;
}

.kakao-link:hover {
    background-color: #FEE500;
    color: #000000;
    border-color: #FEE500;
}

.about-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* About Section */
.about-section {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: var(--shadow);
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background-color: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0 1rem;
    margin-top: auto;
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
    
    .profile-section {
        padding: 1.5rem 0;
    }
    
    .channel-name {
        font-size: 1.6rem;
    }
    
    .channel-subtitle {
        font-size: 0.9rem;
    }
    
    .social-icons {
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
    }
    
    .social-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .link-button {
        padding: 0 1rem;
        font-size: 0.9rem;
    }
    
    .main-link {
        min-height: 55px;
        padding: 0.75rem 1rem;
    }
    
    .main-link .link-text {
        font-size: 0.9rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 8px;
    }
    
    .profile-image {
        width: 80px;
        height: 80px;
    }
    
    .channel-name {
        font-size: 1.4rem;
    }
    
    .social-icons {
        gap: 1rem;
        padding: 0.75rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .link-button {
        height: 44px;
        font-size: 0.85rem;
    }
    
    .main-link {
        min-height: 50px;
        padding: 0.5rem 0.75rem;
    }
    
    .main-link .link-text {
        font-size: 0.85rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #5D4E3A;
        --text-color: #000000;
        --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .link-button {
        border-width: 2px;
        border-color: var(--primary-color);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .link-button::before {
        display: none;
    }
}

/* Print styles */
@media print {
    .about-section {
        display: block !important;
    }
    
    .link-button {
        background-color: transparent !important;
        border: 2px solid var(--primary-color) !important;
    }
    
    .link-button::before {
        display: none;
    }
}
