:root {
    --primary-gradient: linear-gradient(135deg, #0f0f0f 0%, #400000 100%);
    --light-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --accent-gradient: linear-gradient(90deg, #ff1a1a, #800000);
    --text-primary: #f5f5f5;
    --text-secondary: #bbb;
    --text-dark: #333;
    --bg-dark: rgba(0, 0, 0, 0.5);
    --bg-light: rgba(255, 255, 255, 0.9);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-dark: rgba(0, 0, 0, 0.1);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 25px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: var(--primary-gradient);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--primary-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    padding: var(--spacing-lg);
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-attachment: fixed;
    transition: background 0.5s ease, color 0.5s ease;
}

#welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 1s ease;
}

body.light-theme {
    background: var(--light-gradient);
    color: var(--text-dark);
}

.light-theme .profile-name {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 10px rgba(80, 150, 255, 0.2);
}

.light-theme .profile-bio {
    color: #555;
}

.light-theme .social-icon {
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-dark);
}

.light-theme .link-item {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
}

.light-theme .link-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(128, 0, 0, 0.5);
}

.light-theme .group-divider::before {
    background: rgba(0, 0, 0, 0.05);
}

.light-theme .group-divider span {
    background: #f5f7fa;
}

.light-theme .group-title {
    color: #666;
}

.light-theme .footer {
    color: #666;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.light-theme .social-icon.youtube:hover img {
    content: url("icons/youtube.webp");
}

.light-theme .social-icon.soundcloud:hover img {
    content: url("icons/soundcloud.webp");
}

.light-theme .social-icon.instagram:hover img {
    content: url("icons/instagram.webp");
}

.light-theme .social-icon.tiktok:hover img {
    content: url("icons/tiktok.webp");
}

.light-theme .social-icon.email:hover img {
    content: url("icons/mail.webp");
}

.container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
    position: relative;
}

.theme-toggle {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 10;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.light-theme .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-dark);
    color: var(--text-dark);
}

.light-theme .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    text-align: center;
    width: 100%;
}

.profile-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 25px rgba(128, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.profile-image img.fade-out {
    opacity: 0;
}

.profile-image img.fade-in {
    opacity: 1;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin-top: var(--spacing-sm);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px #800000;
}

.profile-bio {
    font-size: 16px;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 80%;
    line-height: 1.5;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    width: 100%;
    margin-top: var(--spacing-sm);
    backdrop-filter: blur(10px);
}

.social-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.social-icon img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.social-icon.youtube:hover {
    background: linear-gradient(135deg, #ff0000, #ff5e5e);
}

.social-icon.soundcloud:hover {
    background: linear-gradient(45deg, #ff6a22, #ff6a22);
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icon.tiktok:hover {
    background: linear-gradient(135deg, #00f2ea, #ff0050);
}

.social-icon.email:hover {
    background: linear-gradient(135deg, #a9deff, #1DA1F2);
}

.link-groups-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    width: 100%;
    margin-top: var(--spacing-sm);
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.group-divider {
    position: relative;
    height: 1px;
    margin: var(--spacing-xs) 0;
    text-align: center;
}

.group-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-light);
    transition: background 0.5s ease;
}

.group-divider span {
    position: relative;
    display: inline-block;
    padding: 0 var(--spacing-sm);
    background: #1a1a1a;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.group-title {
    font-size: 16px;
    font-weight: 600;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.link-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    text-decoration: none;
    color: white;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    box-shadow: var(--shadow);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.link-item:hover {
    transform: scale(1.03);
    background: rgba(128, 0, 0, 0.3);
    border: 1px solid rgba(128, 0, 0, 0.3);
    box-shadow: 0 8px 25px rgba(128, 0, 0, 0.3);
}

.link-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: var(--spacing-md);
    flex-shrink: 0;
    overflow: hidden;
}

.link-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.link-text {
    flex-grow: 1;
    font-weight: 500;
    font-size: 16px;
}

.link-arrow {
    font-size: 14px;
    opacity: 0.7;
}

.footer {
    margin-top: 30px;
    text-align: center;
    color: #888;
    font-size: 14px;
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-light);
    width: 100%;
    transition: var(--transition);
}

.platform-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    overflow: auto;
}

.platform-modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-light);
    animation: modalFadeIn 0.3s ease;
    max-height: 90vh;
    /* ekran yüksekliğine göre sınırla */
    overflow-y: auto;
    /* içerik taşarsa kaydırılsın */
}

.light-theme .modal-content {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-dark);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
}

.light-theme .modal-header {
    border-bottom: 1px solid var(--border-dark);
}

.modal-header h3 {
    font-weight: 600;
    font-size: 18px;
}

.modal-close {
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
    color: inherit;
}

.modal-close:hover {
    color: #ff1a1a;
}

.modal-body {
    padding: var(--spacing-lg);
}

.platform-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.platform-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.light-theme .platform-option {
    color: var(--text-dark);
    border: 1px solid var(--border-dark);
    background: rgba(0, 0, 0, 0.02);
}

.platform-option:hover {
    background: rgba(255, 0, 0, 0.1);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.light-theme .platform-option:hover {
    background: rgba(255, 0, 0, 0.1);
}

.platform-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.platform-icon img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.platform-option span {
    font-weight: 500;
    font-size: 14px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.profile-section,
.social-icons,
.link-groups-container {
    animation: fadeIn 0.8s ease forwards;
}

.social-icons {
    animation-delay: 0.2s;
}

.link-groups-container {
    animation-delay: 0.4s;
}

.audio-preview-container {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.light-theme .audio-preview-container {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-dark);
}

.audio-player {
    display: flex;
    align-items: center;
    gap: 12px;
}

.audio-control {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.light-theme .audio-control {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-dark);
    color: var(--text-dark);
}

.audio-control:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.light-theme .audio-control:hover {
    background: rgba(0, 0, 0, 0.1);
}

.audio-progress,
.audio-progress-bar2 {
    flex-grow: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.light-theme .audio-progress {
    background: rgba(0, 0, 0, 0.1);
}

.audio-progress-bar,
.audio-progress-bar2 {
    position: absolute;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

.audio-time,
.audio-time2 {
    font-size: 12px;
    min-width: 40px;
    text-align: center;
    opacity: 0.8;
}

.apple-music-modal {
    max-width: 700px;
}

.apple-music-embed {
    width: 100%;
    margin-bottom: var(--spacing-lg);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.apple-music-link-container {
    text-align: center;
    margin-top: var(--spacing-md);
}

.link-to-apple-music {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #fa233b, #c70b2b);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.link-to-apple-music:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(250, 35, 59, 0.3);
}

.light-theme .link-to-apple-music {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.error-message {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    padding: var(--spacing-md);
    border-radius: var(--radius-sm);
    margin: var(--spacing-lg) 0;
    text-align: center;
}

.light-theme .error-message {
    background: rgba(255, 0, 0, 0.05);
    border: 1px solid rgba(255, 0, 0, 0.2);
    color: #d32f2f;
}

@media (max-width: 600px) {
    .container {
        padding: var(--spacing-md);
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .profile-name {
        font-size: 24px;
    }

    .profile-bio {
        font-size: 14px;
        max-width: 90%;
    }

    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .link-item {
        padding: 12px 15px;
    }

    .link-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .link-text {
        font-size: 15px;
    }

    .theme-toggle {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .platform-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .theme-toggle {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 768px) {
    .apple-music-modal {
        width: 95%;
        margin: 10px;
    }

    .apple-music-embed iframe {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .apple-music-embed iframe {
        height: 350px;
    }

    .link-to-apple-music {
        padding: 10px 20px;
        font-size: 14px;
    }
}

.scroll-to-top {
    right: var(--spacing-lg);
    width: 40px;
    height: 40px;
    position: fixed;
    bottom: 30px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(128, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(128, 0, 0, 0.5);
}

.light-theme .scroll-to-top {
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
}

.light-theme .scroll-to-top:hover {
    box-shadow: 0 6px 25px rgba(255, 0, 0, 0.4);
}

@media (max-width: 600px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

.promo-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    overflow: hidden;
    font-family: inherit;
    font-weight: 250;
}

.promo-content {
    display: flex;
    white-space: nowrap;
}

.promo-text {
    padding: 0 20px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .promo-banner {
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .promo-banner {
        height: 36px;
        font-size: 12px;
    }
}

body {
    padding-top: 40px;
}

@media (max-width: 768px) {
    body {
        padding-top: 40px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 36px;
    }
}

.body-no-scroll {
    position: fixed;
    width: 100%;
    top: var(--scroll-pos, 0);
}

.modal-content {
    -webkit-overflow-scrolling: touch;
    max-height: 85vh;
    overflow-y: auto;
}

/* Modal boyutları için responsive düzenlemeler */
@media (max-width: 768px) {
    .modal-content {
        width: 85%;
        max-width: 350px;
        margin: 20px;
    }

    .platform-options {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .platform-option {
        padding: var(--spacing-sm);
    }

    .modal-body {
        padding: var(--spacing-md);
    }

    .modal-header {
        padding: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 90%;
        max-width: 320px;
        margin: 15px;
    }

    .audio-player {
        gap: 8px;
    }

    .audio-control {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .audio-time,
    .audio-time2 {
        font-size: 11px;
        min-width: 35px;
    }
}

.promo-code {
    font-weight: bold;
    cursor: pointer;
    color: #b10000;
    padding: 0px 6px;
    border-radius: 6px;
    margin: 0 4px;
    transition: background .2s, transform .1s;
    display: inline-block;
    position: relative;
}

.promo-code:hover {
    background: rgba(128, 0, 0, 0.5);
}

.promo-code:active {
    transform: scale(0.97);
}
