:root {
    --bg-dark: #0a0510;
    --bg-card: rgba(25, 10, 40, 0.7);
    --primary: #9d00ff;
    --secondary: #ff00ea;
    --text-main: #f0f0f0;
    --text-muted: #b0a0c0;
    --border: rgba(157, 0, 255, 0.2);
    --accent: #00f2ff;
    --glass: rgba(255, 255, 255, 0.05);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(157, 0, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 0, 234, 0.15) 0%, transparent 40%);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    max-width: 100%;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px 0 rgba(157, 0, 255, 0.3);
}

h1, h2, h3 {
    background: linear-gradient(135deg, #fff 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.btn {
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.btn-primary:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 20px rgba(157, 0, 255, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: white;
}

.btn-outline:hover {
    background: var(--primary);
    box-shadow: 0 0 15px rgba(157, 0, 255, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.brand {
    font-size: 1.5rem;
    font-weight: 900;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: white;
}

/* Form Elements */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

input, textarea, .custom-select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s ease;
}

.custom-select {
    color: var(--secondary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ff00ea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.custom-select option {
    background-color: #120818;
    color: var(--secondary);
    padding: 12px;
}

input:focus, textarea:focus, .custom-select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(255, 0, 234, 0.2);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-published { background: rgba(0, 255, 128, 0.1); color: #00ff80; border: 1px solid rgba(0, 255, 128, 0.2); }
.badge-scheduled { background: rgba(0, 212, 255, 0.1); color: #00d4ff; border: 1px solid rgba(0, 212, 255, 0.2); }
.badge-failed { background: rgba(255, 0, 85, 0.1); color: #ff0055; border: 1px solid rgba(255, 0, 85, 0.2); }
.badge-processing { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); border: 1px solid var(--border); }

/* Metrics & Pills */
.metric-pill {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 12px;
    gap: 12px;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.metric-item i { width: 14px; opacity: 0.7; }
.metric-item strong { color: white; }

/* Preview & Floating */
.preview-img-container {
    position: relative;
    width: 170px;
    height: 170px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.2);
    cursor: zoom-in;
}

.preview-img-container img, .preview-img-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#floating-preview {
    display: none;
    position: fixed;
    width: 350px;
    height: 350px;
    z-index: 10000;
    pointer-events: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    background: #000;
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
}

/* Grid Helpers */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.post-card-content {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .navbar { flex-direction: column; gap: 1rem; }
    
    .post-card-content {
        gap: 15px;
    }
    
    .preview-img-container {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 6px;
    }
    
    .post-delete-btn {
        position: absolute;
        top: 15px;
        right: 15px;
    }

    .metric-pill {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }

    .metric-pill div[style*="border-right"] {
        border-right: none !important;
        border-bottom: 1px solid var(--border);
        padding-right: 0 !important;
        padding-bottom: 8px;
        width: 100%;
    }

    .mobile-text-hide {
        display: none !important;
    }
}
