/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Platform color variables */
:root {
    --soundcloud-orange: #ff5500;
    --apple-music-red: #fc3c44;
    --spotify-green: #1db954;
    --instagram-gradient: linear-gradient(
        45deg,
        #f09433 0%,
        #e6683c 25%,
        #dc2743 50%,
        #cc2366 75%,
        #bc1888 100%
    );
    --twitter-blue: #1da1f2;
    --youtube-red: #ff0000;
}

body {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

/* Background with blur effect */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("./gxmby_1080x1080.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(20px);
    transform: scale(1.1);
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    backdrop-filter: blur(2px);
}

.container {
    max-width: 600px;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}


/* Header styles */
.header {
    background: url("gxmby_1080x1080.jpg") center/cover no-repeat;
    padding: 40px 30px 30px;
    text-align: center;
    color: white;
    position: relative;
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.header > * {
    position: relative;
    z-index: 2;
}

/* Featured Video Section */
.featured-video {
    padding: 30px;
    text-align: center;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.video-container::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 */
}

.video-container iframe {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

/* Use native aspect-ratio when available */
@supports (aspect-ratio: 16 / 9) {
    .video-container {
        aspect-ratio: 16 / 9;
    }
    .video-container::before {
        content: none;
        padding-top: 0;
    }
}

.video-caption {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin: 0;
    opacity: 0.8;
}

.avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.bio {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 400;
}

/* Social links styles */
.social-links {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    height: 33px;
}

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

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

.social-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.link-icon {
    width: 15px;
    height: 15px;
    margin-right: 0.75rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-icon svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.social-link:hover .link-icon svg {
    transform: scale(1.1);
}

.link-text {
    flex: 1;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1;
}

.link-arrow {
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.3s ease;
    opacity: 0.7;
    line-height: 1;
}

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

/* Platform-specific styles */
.social-link.soundcloud:hover {
    background: rgba(255, 85, 0, 0.2);
    border-color: rgba(255, 85, 0, 0.4);
}

.social-link.apple-music:hover {
    background: rgba(252, 61, 57, 0.2);
    border-color: rgba(252, 61, 57, 0.4);
}

.social-link.spotify:hover {
    background: rgba(30, 215, 96, 0.2);
    border-color: rgba(30, 215, 96, 0.4);
}

.social-link.instagram:hover {
    background: linear-gradient(
        45deg,
        rgba(131, 58, 180, 0.2),
        rgba(253, 29, 29, 0.2),
        rgba(252, 176, 64, 0.2)
    );
    border-color: rgba(131, 58, 180, 0.4);
}

.social-link.twitter:hover {
    background: rgba(29, 161, 242, 0.2);
    border-color: rgba(29, 161, 242, 0.4);
}

.social-link.youtube:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.4);
}

/* Responsive design */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        margin: 0;
        border-radius: 8px;
        max-width: 100%;
        width: calc(100% - 30px);
    }

    .header {
        padding: 15px 12px 12px;
    }

    .avatar {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }

    .name {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .bio {
        font-size: 12px;
    }

    .social-links {
        padding: 12px;
    }

    .social-link {
        padding: 0.1rem 0.4rem;
        height: 24px;
    }

    .link-text {
        font-size: 0.5rem;
    }

    .link-icon {
        width: 8px;
        height: 8px;
        margin-right: 0.15rem;
    }

    .featured-video {
        padding: 8px 10px;
    }

    .video-container iframe {
        height: 100%;
    }

    .video-caption {
        font-size: 11px;
    }
}

/* Tablet tweaks */
@media (max-width: 768px) {
    .container {
        max-width: 500px;
        width: 100%;
    }

    .featured-video {
        padding: 12px 16px;
    }
}

/* Desktop three-column layout: small videos flanking links */
@media (min-width: 900px) {
    body {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        column-gap: 24px;
        row-gap: 24px;
        justify-content: center;
        align-items: center;
        align-content: center;
    }

    .container {
        grid-column: 2;
        max-width: 740px;
    }

    .social-links {
        width: 580px;
        max-width: 100%;
        margin: 0 auto;
    }

    .featured-video {
        padding: 0;
        width: 300px;
    }

    .featured-video:first-of-type {
        grid-column: 1;
        justify-self: end;
    }

    .featured-video:last-of-type {
        grid-column: 3;
        justify-self: start;
    }

    .video-container {
        max-width: 100%;
    }

    .background-container {
        position: fixed;
    }
}

/* Animation for social links */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-link {
    animation: fadeInUp 0.6s ease-out forwards;
}

.social-link:nth-child(1) {
    animation-delay: 0.1s;
}
.social-link:nth-child(2) {
    animation-delay: 0.2s;
}
.social-link:nth-child(3) {
    animation-delay: 0.3s;
}
.social-link:nth-child(4) {
    animation-delay: 0.4s;
}
.social-link:nth-child(5) {
    animation-delay: 0.5s;
}
.social-link:nth-child(6) {
    animation-delay: 0.6s;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .background-image {
        transform: none;
    }
}
