/*
Theme Name: Social b'darija
Theme URI: https://socialbdarija.com
Author: Social b'darija Team
Author URI: https://socialbdarija.com
Description: A professional WordPress theme for social work professionals in Morocco. Features dark glassmorphism design, RTL support, and custom branding with avatar illustrations.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sbd-theme
Domain Path: /languages
Tags: rtl-language-support, custom-logo, custom-menu, featured-images, theme-options, dark, education, professional

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/* ===================================
   CSS Variables - Theme Colors
   =================================== */
:root {
    --primary: #2d5a8c;
    --accent: #4a9fd4;
    --gold: #f0c14b;
    --gold-glow: rgba(240, 193, 75, 0.3);
    --dark-bg: #060c18;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-muted: #e2e8f0;
    --transition-smooth: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ===================================
   Base Styles
   =================================== */
body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--dark-bg);
    color: #ffffff !important;
    overflow-x: hidden;
    line-height: 1.7;
}

/* Ensure all text elements are white */
h1, h2, h3, h4, h5, h6, p, span, a, div, li {
    color: #ffffff !important;
}

/* ===================================
   3D Canvas Background
   =================================== */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

/* ===================================
   Glassmorphism Cards
   =================================== */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(74, 159, 212, 0.1);
}

/* ===================================
   Navbar Customization
   =================================== */
.navbar-custom {
    background: rgba(6, 12, 24, 0.7) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-custom.scrolled {
    padding: 0.6rem 0;
    background: rgba(6, 12, 24, 0.95) !important;
}

/* ===================================
   Hero Section
   =================================== */
.hero-title {
    background: linear-gradient(135deg, #fff 30%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    letter-spacing: -1px;
    text-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.hero-title span {
    background: none;
    -webkit-text-fill-color: white !important;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(74, 159, 212, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent) !important;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ===================================
   Category Elements
   =================================== */
.category-header {
    border-right: 4px solid var(--gold);
    padding-right: 20px;
    margin-bottom: 40px;
    position: relative;
}

.category-number {
    background: var(--gold);
    color: var(--dark-bg) !important;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 800;
    margin-left: 12px;
    box-shadow: 0 4px 15px var(--gold-glow);
}

/* ===================================
   Buttons
   =================================== */
.btn-gold {
    background: linear-gradient(45deg, var(--gold), #ffdb70);
    color: var(--dark-bg) !important;
    font-weight: 700;
    border-radius: 14px;
    padding: 14px 32px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-gold:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 8px 25px var(--gold-glow);
}

.btn-outline-white {
    border: 1px solid rgba(255,255,255,0.3);
    color: white !important;
    border-radius: 14px;
    padding: 14px 32px;
    background: rgba(255,255,255,0.05);
    transition: 0.3s;
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
}

/* ===================================
   Video Styles
   =================================== */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-card-body {
    padding: 1.5rem;
}

/* ===================================
   Premium Box
   =================================== */
.premium-box {
    background: radial-gradient(circle at top right, rgba(240, 193, 75, 0.15), transparent), var(--glass);
    border: 1px solid var(--gold);
    padding: 60px 40px;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
}

/* ===================================
   Footer
   =================================== */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
    margin-top: 100px;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .category-header h3 {
        font-size: 1.5rem;
    }
}

/* ===================================
   WordPress Core Styles
   =================================== */
.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1rem;
}

.alignleft {
    float: left;
    margin: 0 1rem 1rem 0;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.sticky {
    position: relative;
}

.bypostauthor {
    position: relative;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    text-align: center;
}

.gallery-caption {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ===================================
   Utility Classes
   =================================== */
.text-gold {
    color: var(--gold) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.bg-gold {
    background-color: var(--gold) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.opacity-75 {
    opacity: 0.75 !important;
}

.opacity-50 {
    opacity: 0.5 !important;
}

.opacity-25 {
    opacity: 0.25 !important;
}
