/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #1a1a2e;
    min-height: 100vh;
    color: #e0e0e0;
    overflow-x: hidden;
}

/* ===== Particles Container ===== */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* ===== Navbar ===== */
.navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    color: #667eea !important;
}

/* ===== Gradient Text ===== */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* ===== Beam Animation ===== */
.beam {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.beam::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: beam-anim 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes beam-anim {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* ===== Glass Card ===== */
.bg-glass {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ===== Hero Section ===== */
.hero-section {
    padding: 80px 0;
}

.hero-section h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* ===== 3D Flip Cards ===== */
.card-3d {
    perspective: 1000px;
    height: 250px;
}

.card-3d-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

.card-3d:hover .card-3d-inner {
    transform: rotateY(180deg);
}

.card-3d-front,
.card-3d-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
}

.card-3d-front {
    z-index: 2;
}

.card-3d-back {
    transform: rotateY(180deg);
}

/* ===== Form Controls ===== */
.form-control-dark {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #e0e0e0 !important;
    border-radius: 10px;
    padding: 12px 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control-dark:focus {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
    color: #fff !important;
}

.form-control-dark::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* ===== Gradient Button ===== */
.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    padding: 10px 28px;
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.btn-outline-light {
    border-radius: 10px;
    padding: 10px 24px;
}

/* ===== Post Content ===== */
.post-content {
    line-height: 1.8;
    font-size: 1.05rem;
}

.post-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1rem 0;
}

.post-content h1, .post-content h2, .post-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: #fff;
}

.post-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 1rem;
    margin: 1rem 0;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== Empty State ===== */
.empty-icon {
    font-size: 4rem;
    opacity: 0.5;
}

/* ===== Table ===== */
.table-dark {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
}

.table th {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

/* ===== Alert ===== */
.alert {
    border-radius: 12px;
    border: none;
}

/* ===== Quill Editor ===== */
.ql-toolbar {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px 12px 0 0;
}

.ql-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-top: none !important;
    border-radius: 0 0 12px 12px;
    font-size: 16px;
}

.ql-editor {
    color: #e0e0e0;
    min-height: 350px;
}

.ql-editor.ql-blank::before {
    color: rgba(255, 255, 255, 0.4);
}

.ql-snow .ql-stroke {
    stroke: rgba(255, 255, 255, 0.7);
}

.ql-snow .ql-fill {
    fill: rgba(255, 255, 255, 0.7);
}

.ql-snow .ql-picker {
    color: rgba(255, 255, 255, 0.7);
}

.ql-snow .ql-picker-options {
    background: #16213e;
    border-color: rgba(255, 255, 255, 0.15);
}

.ql-snow .ql-picker.ql-expanded .ql-picker-label {
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
}

.ql-snow .ql-active .ql-stroke {
    stroke: #667eea;
}

.ql-snow .ql-active .ql-fill {
    fill: #667eea;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .card-3d {
        height: 220px;
    }
}
