/* Base styles */
html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: black;
    color: white;
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    position: relative;
    /*background-image: radial-gradient(circle at center, rgba(50, 0, 80, 0.4) 0%, rgba(0, 0, 0, 0.8) 70%);*/
}

/* Corner GIFs */
.corner-gif {
    position: fixed;
    width: 150px;
    height: 150px;
    z-index: 7;
}

.top-right {
    top: 20px;
    right: 20px;
}

.top-left {
    top: 20px;
    left: 20px;
}

.bottom-left {
    bottom: 20px;
    left: 20px;
}

/* Popup GIFs */
.popup-gif {
    position: absolute;
    width: 100px;
    height: 100px;
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

/* X gifs in useful-links-section should be above container but below buttons */
.useful-links-section .popup-gif.easter-egg-clickable {
    z-index: 3;
}

/* Make popup gifs clickable on desktop for easter egg */
/* Cursor is controlled by easter-egg-game.css to show default when not in shooting mode */
/* Keep z-index low so X stays visually behind buttons, but clicks are handled via JS */
@media (min-width: 768px) {
    .popup-gif.easter-egg-clickable {
        pointer-events: auto;
        z-index: 2; /* Keep visually behind buttons, clicks handled via JavaScript */
        /* cursor is set in easter-egg-game.css */
    }
}

/* Profile Container */
.profile-container {
    margin-top: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    z-index: 3;
    position: relative;
}

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

.profile-pic {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 3px solid #e3fc02;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: auto;
    overflow: hidden;
    display: block;
    clip-path: circle(50%);
    -webkit-clip-path: circle(50%);
    contain: layout style paint;
}

/* Only show pointer cursor when live (clickable) */
.profile-pic-live,
.profile-pic-link {
    cursor: pointer;
}

/* Default cursor for offline profile picture */
.profile-pic-container:not(.profile-pic-linked) .profile-pic:not(.profile-pic-live) {
    cursor: default;
}

/* Droplet hover animation for offline profile picture */
.profile-pic-container:not(.profile-pic-linked) .profile-pic:not(.profile-pic-live):hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(227, 252, 2, 0.6);
}

.profile-pic-container {
    overflow: visible;
    position: relative;
    cursor: default;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: inline-block;
}

.profile-pic-container.profile-pic-linked {
    cursor: pointer;
}

.profile-pic-container:not(.profile-pic-linked) .profile-pic:not(.profile-pic-live) {
    position: relative;
    overflow: visible;
    cursor: default;
}

.profile-pic-container:not(.profile-pic-linked) .profile-pic:not(.profile-pic-live):hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 252, 2, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: droplet-ripple 1.5s ease-out infinite;
    pointer-events: none;
    z-index: -1;
}

.profile-pic-container:not(.profile-pic-linked) .profile-pic:not(.profile-pic-live):hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 252, 2, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: droplet-ripple 1.5s ease-out 0.3s infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes droplet-ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* Droplet click animation for offline profile picture */
.profile-pic-container:not(.profile-pic-linked) .profile-pic:not(.profile-pic-live):active {
    transform: scale(0.98);
}

/* Click droplet splash effect - override hover effects when clicked */
.profile-pic-container:not(.profile-pic-linked) .profile-pic:not(.profile-pic-live).droplet-click::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 252, 2, 0.6) 0%, rgba(227, 252, 2, 0.3) 50%, transparent 100%);
    transform: translate(-50%, -50%);
    animation: droplet-splash 0.6s ease-out;
    pointer-events: none;
    z-index: -1;
}

.profile-pic-container:not(.profile-pic-linked) .profile-pic:not(.profile-pic-live).droplet-click::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 252, 2, 0.4) 0%, rgba(227, 252, 2, 0.2) 50%, transparent 100%);
    transform: translate(-50%, -50%);
    animation: droplet-splash 0.6s ease-out 0.15s;
    pointer-events: none;
    z-index: -1;
}

@keyframes droplet-splash {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    50% {
        width: 180px;
        height: 180px;
        opacity: 0.8;
    }
    100% {
        width: 250px;
        height: 250px;
        opacity: 0;
    }
}

.social-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #e3fc02, #ff00ff, #00ffff, #e3fc02);
    z-index: -2;
    background-size: 400%;
    animation: glowing 20s linear infinite;
    filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 8px;
}

.social-button:hover::before {
    opacity: 1;
}

.social-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.5);
    color: #e3fc02;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

.social-icon {
    width: 28px;
    height: 28px;
    margin: 0;
    filter: drop-shadow(0 0 2px rgba(227, 252, 2, 0.7));
    object-fit: contain;
    aspect-ratio: 1/1;
    display: block;
}

/* Section Titles */
.section-title {
    font-size: 1.8em;
    margin: 30px 0 25px 0;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    width: 100%;
    text-align: center;
    color: #e3fc02;
    text-shadow: 0 0 5px rgba(227, 252, 2, 0.7);
}

.section-title::before, .section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    height: 2px;
    width: 25%;
    background: linear-gradient(90deg, transparent, #e3fc02, transparent);
}

.section-title::before {
    left: 0;
}

.section-title::after {
    right: 0;
}

/* Hexagon Separator */
.hexagon-separator {
    position: relative;
    width: 100%;
    height: 50px;
    margin: 10px 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hexagon {
    position: relative;
    width: 30px;
    height: 17px;
    background-color: #e3fc02;
    margin: 0 5px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation: pulse-hex 2s infinite alternate;
}

.hexagon:nth-child(2) {
    animation-delay: 0.4s;
}

.hexagon:nth-child(3) {
    animation-delay: 0.8s;
}

@keyframes pulse-hex {
    from { transform: scale(1); filter: brightness(1); }
    to { transform: scale(1.2); filter: brightness(1.5); }
}

/* Links Container */
.links-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
    gap: 15px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.link-button {
    display: block;
    padding: 15px;
    background: rgba(15, 15, 15, 0.8);
    border-radius: 8px;
    text-decoration: none;
    color: white;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(227, 252, 2, 0.5);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 4;
}

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

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

.link-button:hover {
    background: rgba(30, 30, 30, 0.9);
    transform: translateY(-5px);
    border-color: #e3fc02;
    color: #e3fc02;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Cyberpunk-style futuristic brackets around buttons */
.link-button::after {
    content: '<>';
    position: absolute;
    right: 15px;
    color: #e3fc02;
    opacity: 0.7;
    transition: 0.3s;
}

.link-button:hover::after {
    opacity: 1;
    transform: scale(1.2);
}

/* Media Queries */
@media (max-width: 768px) {
    .profile-container {
        padding: 0 20px;
        margin-top: 80px;
        margin-left: auto;
        margin-right: auto;
        width: calc(100% - 40px);
    }
    
    .links-container {
        width: 100%;
    }
    
    .corner-gif {
        display: none;
    }

    .section-title {
        font-size: 1.4em !important;
        letter-spacing: 2px;
        margin: 25px 0 20px 0;
    }
    
    .section-title::before, .section-title::after {
        width: 20%;
    }

    .schedule-loading {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .schedule-card.placeholder {
        margin-bottom: 1rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .corner-gif {
        display: none;
    }
}

.name {
    font-size: 2.5em;
    margin: 20px 0;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(227, 252, 2, 0.7);
    font-family: 'Arial Black', sans-serif;
    position: relative;
    letter-spacing: 2px;
}

.name::after {
    content: 'STREAMER';
    position: absolute;
    font-size: 14px;
    bottom: -15px;
    right: -5px;
    background-color: #e3fc02;
    color: black;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    transform: rotate(-2deg);
}

/* Social Buttons */
.social-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    margin-top: 30px;
    justify-content: center;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: linear-gradient(135deg, #222, #333);
    border: 2px solid #e3fc02;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: all 0.3s;
    position: relative;
}

.schedule-section {
    min-height: 200px;
    position: relative;
}

.useful-links-section {
    width: 100%;
    position: relative;
    z-index: 1;
}

.useful-links-section .links-container {
    max-width: none;
    width: 100%;
}

.link-button i {
    margin-right: 12px;
    color: #e3fc02;
    font-size: 1.1em;
}

.schedule-loading {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2.5rem;
    width: 100%;
}

.schedule-card.placeholder {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(227, 252, 2, 0.3);
    border-radius: 8px;
    padding: 1rem;
}

.placeholder-text {
    height: 1.2em;
    background: linear-gradient(90deg, 
        rgba(227, 252, 2, 0.1) 0%, 
        rgba(227, 252, 2, 0.2) 50%, 
        rgba(227, 252, 2, 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin: 0.5rem 0;
}

.placeholder-text:nth-child(1) { width: 60%; }
.placeholder-text:nth-child(2) { width: 40%; }

.placeholder-button {
    width: 40px;
    height: 40px;
    background: linear-gradient(90deg, 
        rgba(227, 252, 2, 0.1) 0%, 
        rgba(227, 252, 2, 0.2) 50%, 
        rgba(227, 252, 2, 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 50%;
    border: none;
    cursor: default;
}

/* Duration text styling */
.duration {
    line-height: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.25rem;
}

.duration i {
    font-size: 1.2em;
    color: #e3fc02;
}

/* Remove clock from placeholder duration */
.schedule-card.placeholder .duration {
    padding-left: 0;
}

.schedule-card.placeholder .duration::before {
    display: none;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

#schedule-container {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

#schedule-container.loading {
    opacity: 0.5;
}

.schedule-card {
    margin-bottom: 1rem;
    transition: transform 0.2s ease-in-out;
}

.schedule-card:hover {
    transform: translateY(-2px);
}

.social-tooltip {
    display: block;
    position: absolute;
    left: 50%;
    top: 130%;
    transform: translateX(-50%) scale(0.95);
    background: rgba(24,24,24,0.98);
    color: #fff;
    padding: 4px 12px;
    border-radius: 7px;
    border: 2px solid #cccccc;
    box-shadow: none;
    font-size: 0.92rem;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 20;
    white-space: nowrap;
    text-shadow: none;
}
.social-button:hover .social-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}