/* Comic Code font declarations */
@font-face {
    font-family: 'Comic Code';
    src: url('https://www.doughmination.win/fonts/ComicCode-Regular_2022-05-24-151938_hsmz.woff2') format('woff2'),
         url('https://www.doughmination.win/fonts/ComicCode-Regular_2022-05-24-151938_hsmz.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Comic Code';
    src: url('https://www.doughmination.win/fonts/ComicCode-Italic_2022-05-24-151939_rdtu.woff2') format('woff2'),
         url('https://www.doughmination.win/fonts/ComicCode-Italic_2022-05-24-151939_rdtu.woff') format('woff');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Comic Code';
    src: url('https://www.doughmination.win/fonts/ComicCode-Medium_2022-05-24-151941_ugqm.woff2') format('woff2'),
         url('https://www.doughmination.win/fonts/ComicCode-Medium_2022-05-24-151941_ugqm.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Comic Code';
    src: url('https://www.doughmination.win/fonts/ComicCode-Bold_2022-05-24-152309_zqkm.woff2') format('woff2'),
         url('https://www.doughmination.win/fonts/ComicCode-Bold_2022-05-24-152309_zqkm.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

/* Comic Sans font stack */
:root {

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Code', 'Comic Sans MS', 'Comic Sans', monospace, sans-serif;
    background: linear-gradient(135deg, var(--cyan-dark) 0%, var(--cyan-medium) 100%);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    cursor: url('https://yuri-lover.win/cursors/themidnightcyan/auto.png'), auto;
}

/* Code elements specifically use Comic Code */
code, pre {
    font-family: 'Comic Code', 'Courier New', monospace;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--cyan-dark) 0%, var(--cyan-medium) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
    cursor: none;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: var(--text-light);
}

/* Animated loading cursor styles */
#loading-cursor {
    position: fixed;
    width: 32px;
    height: 32px;
    pointer-events: none;
    z-index: 10000;
    display: none;
    /* hidden until JS starts it */
    background-size: cover;
    background-repeat: no-repeat;
}

.bouncing-diamonds {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.diamond {
    font-size: 1.5rem;
    color: var(--accent-glow);
    animation: bounce 1.4s ease-in-out infinite both;
}

.diamond:nth-child(1) { animation-delay: -0.32s; }
.diamond:nth-child(2) { animation-delay: -0.16s; }
.diamond:nth-child(3) { animation-delay: 0s; }
.diamond:nth-child(4) { animation-delay: 0.16s; }
.diamond:nth-child(5) { animation-delay: 0.32s; }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0.8) translateY(0);
        opacity: 0.7;
    }
    40% {
        transform: scale(1.2) translateY(-15px);
        opacity: 1;
    }
}

.rotating-lavender {
    font-size: 4rem;
    animation: rotate 2s linear infinite;
    margin-bottom: 20px;
    text-shadow: 0 0 25px var(--accent-glow), 0 0 50px var(--accent-glow);
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 20px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.hidden {
    display: none;
}

/* butterfly Button Styles */
.butterfly-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.butterfly-button a {
    display: block;
    text-decoration: none;
    position: relative;
}

.butterfly-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--lavender-purple);
    box-shadow: 0 4px 15px rgba(163, 136, 238, 0.3);
    transition: all 0.3s ease;
    display: block;
    cursor: url('https://yuri-lover.win/cursors/themidnightcyan/pointer.png'), pointer;
}

.butterfly-image:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(163, 136, 238, 0.5);
    border-color: var(--accent-glow);
}

.butterfly-badge {
    position: absolute;
    top: 50%;
    right: 75px;
    transform: translateY(-50%);
    background: rgba(42, 27, 61, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--lavender-purple);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.butterfly-badge::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid rgba(42, 27, 61, 0.95);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.butterfly-button a:hover .butterfly-badge {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

/* Responsive adjustments for butterfly button */
@media (max-width: 768px) {
    .butterfly-button {
        top: 15px;
        right: 15px;
    }
    
    .butterfly-image {
        width: 50px;
        height: 50px;
        border-width: 2px;
    }
    
    .butterfly-badge {
        right: 60px;
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    
    .butterfly-badge::after {
        right: -6px;
        border-left-width: 6px;
        border-top-width: 6px;
        border-bottom-width: 6px;
    }
}

@media (max-width: 480px) {
    .butterfly-badge {
        right: 55px;
        font-size: 0.75rem;
        padding: 5px 8px;
    }
}


/* Scroll Animation Styles */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for smoother effect */
.fade-in-element:nth-child(1) { transition-delay: 0.1s; }
.fade-in-element:nth-child(2) { transition-delay: 0.2s; }
.fade-in-element:nth-child(3) { transition-delay: 0.3s; }
.fade-in-element:nth-child(4) { transition-delay: 0.4s; }
.fade-in-element:nth-child(5) { transition-delay: 0.5s; }

/* Diamond sprinkles decoration */
.diamond-sprinkles {
    position: relative;
    height: 20px;
    overflow: hidden;
}

.diamond-sprinkles::before {
    content: "✦ ✧ ⋆ ✦ ✧ ⋆ ✦ ✧ ⋆";
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    color: var(--diamond-pink);
    opacity: 0.6;
    font-size: 12px;
    animation: sprinkle-drift 15s linear infinite;
}

@keyframes sprinkle-drift {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--diamond-cream);
    margin: 20px 0;
    text-shadow: 0 0 20px var(--accent-glow);
}

.lavender-accent {
    font-size: 2rem;
    margin-top: 15px;
    animation: lavender-float 4s ease-in-out infinite;
}

@keyframes lavender-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

/* Navigation */
.nav-menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--diamond-cream);
    background: rgba(163, 136, 238, 0.2);
    transform: translateY(-2px);
    cursor: url('https://yuri-lover.win/cursors/themidnightcyan/pointer.png'), pointer;
}

.nav-link:hover::after {
    content: "✦";
    position: absolute;
    top: -5px;
    right: -5px;
    color: var(--diamond-pink);
    font-size: 10px;
}

/* Main content */
.section {
    margin-bottom: 60px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    scroll-margin-top: 20px;
}

.section h2 {
    color: var(--lavender-purple);
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.section h2::after {
    content: " 🪻";
    opacity: 0.7;
    font-size: 0.8em;
}

.section p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 1rem;
}

/* Pronoun card styling */
.pronoun-card {
    background: rgba(163, 136, 238, 0.1);
    border: 1px solid var(--lavender-purple);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.pronoun-card h3 {
    color: var(--accent-glow);
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.3rem;
}

.pronoun-examples p {
    margin: 8px 0;
    padding-left: 10px;
    color: var(--text-light);
}

.pronoun-examples strong {
    color: var(--lavender-purple);
}

/* Interests grid */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.interest-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid var(--diamond-pink);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.interest-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(163, 136, 238, 0.1);
}

.interest-item h4 {
    color: var(--lavender-purple);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.interest-item p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Project items */
.project-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 3px solid var(--accent-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(163, 136, 238, 0.1);
}

.project-item h4 {
    color: var(--lavender-purple);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.project-item h4 a {
    color: inherit;
    font: inherit;
    text-decoration: none;
}

.project-item p {
    margin-bottom: 0;
}

.project-link {
    cursor: url('https://yuri-lover.win/cursors/themidnightcyan/pointer.png'), pointer;
}

/* Contact section */
.contact-links p {
    margin: 10px 0;
    padding-left: 15px;
    color: var(--text-light);
}

.contact-links strong {
    color: var(--lavender-purple);
}

/* FAQ specific styling */
.faq-item {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 3px solid var(--lavender-purple);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(163, 136, 238, 0.1);
}

.faq-item h3 {
    color: var(--accent-glow);
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 400;
}

.faq-item p {
    margin-bottom: 10px;
}

.faq-item p:last-child {
    margin-bottom: 0;
}

/* Resources section */
.resource-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 3px solid var(--diamond-pink);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resource-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(163, 136, 238, 0.1);
}

.resource-item h4 {
    color: var(--lavender-purple);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.resource-item a {
    color: var(--accent-glow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.resource-item a:hover {
    color: var(--diamond-cream);
    text-decoration: underline;
}

.resource-item p {
    margin: 5px 0;
}

/* Images */
.contact-icon {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 8px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.contact-icon:hover {
    opacity: 1;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--lavender-purple);
    margin: 0 auto 20px;
    display: block;
    box-shadow: 0 0 20px rgba(163, 136, 238, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(163, 136, 238, 0.5);
}

/* Discord embed styling */
.discord-embed {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid var(--lavender-purple);
    box-shadow: 0 4px 15px rgba(163, 136, 238, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.discord-embed:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(163, 136, 238, 0.3);
}

/* Footer */
footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

/* Enhanced responsive design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.2rem;
    }
    
    .nav-menu {
        gap: 15px;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .interests-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .section {
        padding: 25px;
        margin-bottom: 40px;
    }
    
    .section h2 {
        font-size: 1.6rem;
    }
    
    .container {
        padding: 15px;
    }
}

@media (max-width: 600px) {
    .main-title {
        font-size: 2rem;
    }
    
    .interests-grid {
        grid-template-columns: 1fr;
    }
    
    .pronoun-examples {
        font-size: 0.9rem;
    }
    
    .section {
        padding: 20px;
    }
}


/* Social Media Container for future buttons */
.social-container {
    position: fixed;
    top: 100px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Artists section styling */
.artists-section {
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    scroll-margin-top: 20px;
    position: relative;
    z-index: 100;
}

.artists-section h2 {
    color: var(--lavender-purple);
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 400;
}

.artists-section h2::after {
    content: " 🎵";
    opacity: 0.7;
    font-size: 0.8em;
}

.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    max-width: 700px;
    margin: 0 auto;
    overflow: visible;
    justify-items: center;
}

.artist-item {
    position: relative;
    width: 140px;
    height: 140px;
    cursor: url('https://yuri-lover.win/cursors/themidnightcyan/help.png'), help;
    transition: transform 0.3s ease;
    overflow: visible; /* Already here, keeps tooltip visible */
}

.artist-item:hover {
    transform: translateY(-5px) scale(1.05);
    z-index: 20;
}

.artist-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--lavender-purple);
    box-shadow: 0 4px 15px rgba(163, 136, 238, 0.3);
    transition: all 0.3s ease;
}

.artist-item:hover .artist-image {
    border-color: var(--accent-glow);
    box-shadow: 0 6px 25px rgba(163, 136, 238, 0.5);
    filter: brightness(0.7);
}

/* Artist name overlay */
.artist-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(42, 27, 61, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.artist-item:hover .artist-overlay {
    opacity: 1;
}

.artist-name {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    padding: 0 10px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Artist tooltip */
.artist-tooltip {
    position: fixed;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    margin-top: 15px;
    background: rgba(42, 27, 61, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    border: 1px solid var(--lavender-purple);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    max-width: 700px;           /* wider tooltip */
    text-align: center;         /* center text for better flow */
    line-height: 1.5;           /* more breathing room */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: normal;        /* allow wrapping */
    pointer-events: none;
    z-index: 50;
}

.artist-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(42, 27, 61, 0.95);
}

.artist-item:hover .artist-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px); /* smooth slide effect */
}

/* Flags section styling */
.flags-section {
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    scroll-margin-top: 20px;
    position: relative;
    /* keep tooltips above other sections */
    z-index: 100;
}

.flags-section h2 {
    color: var(--butterfly-purple);
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: 400;
}

.flags-section h2::after {
    content: " 🏳️";
    opacity: 0.7;
    font-size: 0.8em;
}

.flags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 25px;
    max-width: 600px;
    margin: 0 auto;
    overflow: visible;
    justify-items: center;
}

.flag-item {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: url('https://yuri-lover.win/cursors/themidnightcyan/pointer.png'), pointer;
    transition: transform 0.3s ease;
    overflow: visible;
    width: 140px;
    /* consistent width */
    text-align: center;
}

.flag-item:hover {
    transform: translateY(-5px);
    z-index: 20;
    cursor: url('https://yuri-lover.win/cursors/themidnightcyan/help.png'), help;
}

.flag-image {
    width: 100px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--butterfly-purple);
    box-shadow: 0 4px 15px rgba(163, 136, 238, 0.2);
    transition: all 0.3s ease;
}

.flag-item:hover .flag-image {
    border-color: var(--accent-glow);
    box-shadow: 0 6px 20px rgba(163, 136, 238, 0.4);
    transform: scale(1.05);
}

/* Tooltip styling */
.flag-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 8px;
    background: rgba(42, 27, 61, 0.95);
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid var(--butterfly-purple);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 220px;
    text-align: center;
    line-height: 1.3;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: normal;
    pointer-events: none;
    z-index: 50;
}

.flag-item:hover .flag-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}
