/* /var/www/antalevpn_share/style.css */
:root {
    --bg-color: #000000;
    --card-bg: rgba(28, 28, 30, 0.65);
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --border: rgba(255, 255, 255, 0.1);
    --font-stack: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-stack);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background gradient blob */
.background-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.12) 0%, rgba(0,0,0,0) 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

/* HEADER: ИСПРАВЛЕННЫЙ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border);
    /* Уменьшили высоту */
    padding: 12px 0; 
    display: flex;
    justify-content: center;
}

.navbar-content {
    width: 100%;
    max-width: 1100px; /* Центрирует логотип по сетке контента */
    padding: 0 24px;
    display: flex;
    justify-content: center; /* Центровка логотипа внутри */
}

.logo {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--text-primary);
}
.logo span { color: var(--accent); }

/* CONTAINER: ИСПРАВЛЕННЫЙ */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px; /* padding-top учитывает высоту хедера */
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 40px;
    width: 100%;
    max-width: 440px; /* Чуть уменьшили для элегантности */
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

h1 { font-size: 2.2rem; margin: 0 0 10px; letter-spacing: -0.03em; }
h2 { font-size: 1.3rem; margin: 10px 0; font-weight: 500; }
.subtitle { color: var(--text-secondary); margin-bottom: 30px; font-size: 1rem; line-height: 1.4; }

/* PREVIEW FIX: Ограничение картинки */
.preview-container {
    width: 100%;
    max-height: 350px;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(0,0,0,0.2);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.image-preview {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Картинка не вылазит и не обрезается */
}

.video-preview {
    width: 100%;
    max-height: 350px;
    border-radius: 12px;
}

.text-preview {
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
    padding: 15px;
    font-family: "SF Mono", monospace;
    font-size: 12px;
    background: rgba(0,0,0,0.2);
    color: #d1d1d6;
    white-space: pre-wrap;
    scrollbar-width: thin;
}

/* Upload Area */
.drop-area {
    border: 2px dashed var(--border);
    border-radius: 20px;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 20px;
}
.drop-area:hover {
    border-color: var(--accent);
    background: rgba(0, 113, 227, 0.05);
    transform: scale(1.01);
}
.drop-area .icon { color: var(--accent); margin-bottom: 15px; opacity: 0.8; }

/* Buttons */
.btn-download, button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 99px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-download:hover, .link-box button:hover { 
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.btn-share-alt {
    background: rgba(255, 255, 255, 0.05) !important; /* Принудительно серый */
    border: 1px solid var(--border) !important;
    color: var(--text-primary) !important;
    padding: 12px !important;
    border-radius: 14px !important;
    margin-top: 0 !important; /* Убираем лишний отступ */
    box-shadow: none !important;
}

.btn-share-alt:hover {
    background: rgba(255, 255, 255, 0.12) !important; /* Легкое высветление */
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.btn-success-anim {
    border-color: #30d158 !important;
    color: #30d158 !important;
    background: rgba(48, 209, 88, 0.1) !important;
}

/* FOOTER */
footer {
    padding: 60px 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    background: rgba(0,0,0,0.2);
}
.footer-logo {
    height: 32px;
    margin-bottom: 20px;
    opacity: 0.6;
    transition: opacity 0.3s;
}
.footer-logo:hover { opacity: 1; }
.footer-text {
    font-size: 10px;
    color: var(--text-secondary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}
.stat-item {
    background: rgba(255,255,255,0.03);
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--border);
}
.stat-val { font-size: 1.2rem; font-weight: 600; display: block; }
.stat-label { font-size: 0.7rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; }

.link-box {
    display: flex;
    background: rgba(0,0,0,0.3);
    padding: 6px 6px 6px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    margin-top: 20px;
    align-items: center;
}
.link-box input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    flex: 1;
    outline: none;
    font-size: 0.9rem;
}