/* RedViper - Elite Gaming Profile Styles */

/* CSS Değişkenleri */
:root {
    --red-primary: #dc2626;
    --red-secondary: #991b1b;
    --red-accent: #fca5a5;
    --red-glow: #ef4444;
    --dark-bg: #0a0a0a;
    --dark-secondary: #1a1a1a;
    --dark-tertiary: #2a2a2a;
    --white: #ffffff;
    --gray-light: #cccccc;
    --gray-medium: #888888;
    --green-online: #4ade80;
    --discord-blue: #5865F2;
}

/* Global Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23dc2626" stroke-width="3"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>') 12 12, crosshair !important;
}

body {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--red-secondary) 100%);
    color: var(--white);
    font-family: 'Were-Beast', 'Arial', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Seçim Renkleri */
::selection {
    background: var(--red-primary);
    color: var(--white);
}

::-moz-selection {
    background: var(--red-primary);
    color: var(--white);
}

/* Ana Container */
.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease 0.5s;
}

.main-container.visible {
    opacity: 1;
    visibility: visible;
}

/* Arka Plan Video */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.4;
    filter: blur(2px);
    transition: all 0.5s ease;
}

.background-video.playing {
    opacity: 0.7;
    filter: blur(0px);
}

/* Açılış Ekranı */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95), rgba(153, 27, 27, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.8s ease;
    backdrop-filter: blur(10px);
}

.intro-screen.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
}

.intro-text {
    text-align: center;
    animation: introGlow 2s ease-in-out infinite alternate;
}

.intro-message {
    font-family: 'Were-Beast', sans-serif;
    font-size: clamp(2rem, 8vw, 6rem);
    font-weight: bold;
    background: linear-gradient(45deg, var(--red-primary), var(--red-accent), var(--white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 20px 0;
    text-shadow: 0 0 30px var(--red-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: textPulse 3s ease-in-out infinite;
}

.intro-subtitle {
    font-size: 1.2rem;
    color: var(--red-accent);
    opacity: 0.8;
    animation: blink 2s infinite;
}

@keyframes introGlow {
    from { 
        filter: drop-shadow(0 0 10px var(--red-primary)); 
        transform: scale(1);
    }
    to { 
        filter: drop-shadow(0 0 30px var(--red-glow)); 
        transform: scale(1.02);
    }
}

@keyframes textPulse {
    0%, 100% { 
        text-shadow: 0 0 30px var(--red-primary);
        transform: scale(1);
    }
    50% { 
        text-shadow: 0 0 50px var(--red-glow), 0 0 80px var(--red-accent);
        transform: scale(1.05);
    }
}

@keyframes blink {
    0%, 50% { opacity: 0.8; }
    51%, 100% { opacity: 0.3; }
}

/* Profil Kartı */
.profile-card {
    background: rgba(26, 26, 26, 0.95);
    border-radius: 20px;
    padding: 30px;
    max-width: 650px;
    width: 100%;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 0 30px var(--red-primary),
        0 0 60px rgba(220, 38, 38, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid var(--red-accent);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-card:hover {
    transform: perspective(1000px) rotateY(-12deg) rotateX(8deg) translateZ(40px);
    box-shadow: 
        0 30px 80px rgba(220, 38, 38, 0.6),
        0 15px 40px rgba(220, 38, 38, 0.4),
        0 0 50px var(--red-glow);
    border-color: var(--red-primary);
}

.profile-card:hover::before {
    animation-duration: 4s;
}

.profile-card:hover::after {
    transform: scale(1.02);
    background: rgba(26, 26, 26, 0.98);
}

.profile-card:hover .profile-header {
    transform: translateZ(20px);
}

.profile-card:hover .discord-presence,
.profile-card:hover .discord-server {
    transform: translateZ(10px);
    transition: transform 0.6s ease;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        var(--red-primary) 60deg,
        transparent 120deg,
        transparent 240deg,
        var(--red-accent) 300deg,
        transparent 360deg
    );
    animation: rotate 8s linear infinite;
    z-index: -1;
}

.profile-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: rgba(26, 26, 26, 0.95);
    border-radius: 18px;
    z-index: -1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Profil Header */
.profile-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    transition: transform 0.6s ease;
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.main-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--red-primary);
    box-shadow: 0 0 25px var(--red-glow);
    transition: all 0.3s ease;
}

.main-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px var(--red-glow);
}

.profile-bg {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.7;
    filter: blur(5px);
}

/* Profil Bilgileri */
.profile-username {
    font-size: 2.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--red-primary), var(--red-accent), var(--white));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 10px 0;
    text-shadow: 0 0 20px var(--red-primary);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 5px var(--red-primary)); }
    to { filter: drop-shadow(0 0 15px var(--red-glow)); }
}

.badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.viper-badge {
    background: linear-gradient(45deg, var(--red-primary), var(--red-secondary));
    padding: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--red-primary);
    transition: all 0.3s ease;
}

.viper-badge:hover {
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 0 25px var(--red-glow);
}

.viper-badge svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.profile-status {
    font-size: 1.3rem;
    color: var(--red-accent);
    margin: 10px 0;
    font-weight: 500;
}

.join-date {
    font-size: 1rem;
    color: var(--gray-medium);
    margin: 0;
    opacity: 0.8;
}

/* Discord Sections */
.discord-presence {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(20, 20, 20, 0.7));
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.presence-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.discord-avatar-container {
    position: relative;
}

.discord-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--red-accent);
}

.status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--dark-secondary);
    border-radius: 50%;
}

.presence-info {
    flex: 1;
}

.discord-username {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--red-accent);
    margin-bottom: 5px;
}

.activity-status {
    font-size: 0.95rem;
    color: var(--gray-light);
    margin: 0;
    line-height: 1.4;
}

.activity-label {
    color: var(--red-primary);
    font-weight: bold;
}

.game-icon {
    flex-shrink: 0;
}

.game-icon img {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    border: 1px solid var(--red-accent);
}

/* Discord Server */
.discord-server {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(20, 20, 20, 0.7));
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.discord-server::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.server-info {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.server-icon img {
    width: 55px;
    height: 55px;
    border-radius: 15px;
    border: 2px solid var(--red-accent);
}

.server-details {
    flex: 1;
}

.server-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 0 8px 0;
    color: var(--red-accent);
}

.server-stats {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--gray-light);
    margin: 8px 0;
    flex-wrap: wrap;
}

.server-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.server-stats svg {
    color: var(--green-online);
}

.join-button {
    background: linear-gradient(45deg, var(--red-primary), var(--red-secondary));
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    border: 1px solid var(--red-accent);
}

.join-button:hover {
    background: linear-gradient(45deg, var(--red-secondary), var(--dark-secondary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.discord-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--discord-blue);
    font-size: 0.9rem;
    margin-top: 15px;
    font-weight: 500;
}

/* Sosyal Linkler */
.social-links {
    margin-top: 25px;
}

.link-card {
    border-radius: 15px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--red-accent);
    transition: all 0.3s ease;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
}

.link-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.link-preview:hover {
    transform: scale(1.05);
}

/* Discord Ayarları */
.discord-settings {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(26, 26, 26, 0.95);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    backdrop-filter: blur(15px);
    border: 2px solid var(--red-accent);
    box-shadow: 0 0 30px var(--red-primary);
    z-index: 10000;
    display: none;
    animation: settingsSlideIn 0.3s ease-out;
}

.discord-settings.show {
    display: block;
}

.settings-header {
    background: linear-gradient(135deg, var(--red-primary), var(--red-secondary));
    padding: 20px;
    border-radius: 18px 18px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-header h3 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.settings-content {
    padding: 25px;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group label {
    display: block;
    color: var(--red-accent);
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.setting-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--dark-secondary);
    border-radius: 8px;
    background: var(--dark-bg);
    color: white;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.setting-group input[type="text"]:focus {
    outline: none;
    border-color: var(--red-primary);
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

.setting-group small {
    display: block;
    color: var(--gray-medium);
    font-size: 0.75rem;
    margin-top: 5px;
    line-height: 1.3;
}

.setting-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.save-btn,
.test-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.save-btn {
    background: linear-gradient(45deg, var(--red-primary), var(--red-secondary));
    color: white;
    flex: 1;
}

.save-btn:hover {
    background: linear-gradient(45deg, var(--red-secondary), var(--dark-secondary));
    transform: translateY(-2px);
}

.test-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--red-accent);
    border: 1px solid var(--red-accent);
    flex: 1;
}

.test-btn:hover {
    background: var(--red-accent);
    color: var(--dark-bg);
}

.connection-status {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: left;
    display: none;
    white-space: pre-line;
    line-height: 1.4;
    max-height: 200px;
    overflow-y: auto;
}

.connection-status.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
    display: block;
}

.connection-status.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid #f44336;
    display: block;
}

.connection-status.loading {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
    display: block;
}

/* Ayarlar Butonu */
.settings-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(26, 26, 26, 0.9);
    padding: 15px;
    border-radius: 50%;
    border: 2px solid var(--red-accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.settings-button:hover {
    background: rgba(220, 38, 38, 0.9);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.settings-button svg {
    color: var(--red-accent);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.settings-button:hover svg {
    color: white;
}

/* Görüntüleyici Sayacı */
.viewer-counter {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(26, 26, 26, 0.9);
    padding: 12px 16px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--red-accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: viewerPulse 3s ease-in-out infinite;
}

.viewer-icon {
    font-size: 1.2rem;
    color: var(--red-primary);
    animation: blink 2s ease-in-out infinite;
}

.viewer-count {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--white);
    font-family: 'Courier New', monospace;
}

@keyframes viewerPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    }
}

/* Ses Kontrolü */
.volume-control {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(26, 26, 26, 0.9);
    padding: 15px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--red-accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

@keyframes settingsSlideIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.volume-icon {
    color: var(--red-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 8px;
}

.volume-icon:hover {
    background: rgba(220, 38, 38, 0.2);
    transform: scale(1.1);
    color: var(--red-accent);
}

.volume-slider {
    position: relative;
}

.slider {
    width: 100px;
    height: 6px;
    border-radius: 5px;
    background: var(--dark-tertiary);
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--red-primary), var(--red-accent));
    cursor: pointer;
    box-shadow: 0 0 10px var(--red-primary);
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--red-glow);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--red-primary), var(--red-accent));
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px var(--red-primary);
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .main-container {
        padding: 10px;
    }
    
    .profile-card {
        padding: 20px;
    }
    
    .profile-username {
        font-size: 2.2rem;
    }
    
    .main-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-bg {
        width: 120px;
        height: 120px;
    }
    
    .presence-header,
    .server-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .server-stats {
        justify-content: center;
    }
    
    .volume-control {
        top: 10px;
        right: 10px;
        padding: 10px;
    }
    
    .viewer-counter {
        bottom: 10px;
        left: 10px;
        padding: 10px 14px;
    }
    
    .viewer-icon {
        font-size: 1rem;
    }
    
    .viewer-count {
        font-size: 0.8rem;
    }
    
    .slider {
        width: 80px;
    }
    
    .settings-button {
        top: 10px;
        left: 10px;
        padding: 12px;
    }
    
    .discord-settings {
        width: 95%;
        margin: 0;
    }
    
    .settings-content {
        padding: 20px;
    }
    
    .setting-actions {
        flex-direction: column;
    }
    
    .intro-message {
        font-size: clamp(1.5rem, 6vw, 3rem);
    }
}

@media (max-width: 480px) {
    .profile-username {
        font-size: 1.8rem;
    }
    
    .profile-card {
        padding: 15px;
    }
    
    .main-avatar {
        width: 80px;
        height: 80px;
    }
    
    .discord-avatar {
        width: 50px;
        height: 50px;
    }
    
    .server-icon img {
        width: 45px;
        height: 45px;
    }
}

/* Loading Animation */
.loading {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--red-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red-secondary);
} 