/**
 * Social b'darija Theme - Main Stylesheet
 * Additional styles beyond style.css
 *
 * @package Social_b'darija
 * @since 1.0.0
 */

/* ===================================
   Additional Component Styles
   =================================== */

/* Content Overlay */
.content-overlay {
    position: relative;
    z-index: 1;
}

/* Min-height adjustments */
.min-vh-75 {
    min-height: 75vh;
}

/* ===================================
   Category Filter Styles
   =================================== */
.category-filter {
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-filter:hover,
.category-filter.active {
    border-color: var(--gold);
    background: rgba(240, 193, 75, 0.1);
    transform: translateY(-3px);
}

/* ===================================
   Video Item Styles
   =================================== */
.video-item {
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
}

/* ===================================
   Form Styles
   =================================== */
.form-control,
.form-select {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: #ffffff !important;
    box-shadow: 0 0 0 0.25rem rgba(74, 159, 212, 0.25);
}

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

.form-label {
    color: #ffffff !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Contact Form 7 Styles */
.wpcf7-form {
    width: 100%;
}

.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 1rem;
}

.wpcf7-text,
.wpcf7-email,
.wpcf7-tel,
.wpcf7-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff !important;
    font-family: 'Cairo', sans-serif;
}

.wpcf7-text:focus,
.wpcf7-email:focus,
.wpcf7-tel:focus,
.wpcf7-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 0.25rem rgba(74, 159, 212, 0.25);
}

.wpcf7-textarea {
    min-height: 120px;
    resize: vertical;
}

.wpcf7-submit {
    background: linear-gradient(45deg, var(--gold), #ffdb70);
    color: var(--dark-bg) !important;
    font-weight: 700;
    border-radius: 14px;
    padding: 14px 32px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--gold-glow);
    font-family: 'Cairo', sans-serif;
}

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

.wpcf7-response-output {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
}

.wpcf7-mail-sent-ok {
    background: rgba(72, 180, 97, 0.2);
    border-color: #48b461;
    color: #48b461 !important;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background: rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
    color: #dc3545 !important;
}

/* ===================================
   Accordion Styles
   =================================== */
.accordion-button {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-button:not(.collapsed) {
    background-color: rgba(240, 193, 75, 0.15);
    border-color: var(--gold);
    color: #ffffff !important;
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.25rem rgba(240, 193, 75, 0.25);
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-body {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

/* ===================================
   Pagination Styles
   =================================== */
.pagination .page-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    padding: 10px 16px;
    margin: 0 4px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover,
.pagination .page-link:focus {
    background: rgba(240, 193, 75, 0.2);
    border-color: var(--gold);
    color: #ffffff !important;
}

.pagination .page-item.active .page-link {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark-bg) !important;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===================================
   Post Thumbnail Styles
   =================================== */
.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.glass-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* ===================================
   Widget Styles
   =================================== */
.widget-title {
    position: relative;
    padding-bottom: 10px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--gold);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.widget ul li a:hover {
    color: var(--gold) !important;
    padding-right: 5px;
}

/* ===================================
   Single Post Styles
   =================================== */
.single-post .entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
    color: var(--gold) !important;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.single-post .entry-content p {
    margin-bottom: 1.5rem;
}

.single-post .entry-content ul,
.single-post .entry-content ol {
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.single-post .entry-content blockquote {
    border-right: 4px solid var(--gold);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background: rgba(240, 193, 75, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* ===================================
   Comments Styles
   =================================== */
.comments-area {
    margin-top: 3rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
}

.comment-body {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-author {
    font-weight: 700;
    color: var(--gold) !important;
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.comment-respond {
    margin-top: 3rem;
}

.comment-form-cookies-consent label {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 400;
}

/* ===================================
   Search Results Styles
   =================================== */
.search-no-results .page-content {
    text-align: center;
    padding: 3rem 0;
}

.search-no-results .search-form {
    max-width: 500px;
    margin: 2rem auto;
}

/* ===================================
   404 Page Styles
   =================================== */
.error-404 .page-content {
    text-align: center;
    padding: 4rem 0;
}

.error-404 .error-image {
    max-width: 300px;
    margin: 0 auto 2rem;
}

.error-404 .display-1 {
    font-size: 6rem;
    color: var(--gold);
}

/* ===================================
   Back to Top Button
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--dark-bg) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border: none;
    box-shadow: 0 4px 15px var(--gold-glow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--gold-glow);
}

/* RTL specific */
[dir="rtl"] .back-to-top {
    left: 30px;
    right: auto;
}

/* ===================================
   Loading Spinner
   =================================== */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(240, 193, 75, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   Social Share Buttons
   =================================== */
.social-share {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-share a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.social-share a:hover {
    background: var(--gold);
    color: var(--dark-bg) !important;
    transform: translateY(-3px);
}

/* ===================================
   Breadcrumb Styles
   =================================== */
.breadcrumb {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--gold) !important;
}

.breadcrumb-item.active {
    color: var(--gold) !important;
}

.breadcrumb-item + .breadcrumb-item::before {
    filter: invert(1);
    opacity: 0.5;
}

/* ===================================
   Responsive Adjustments
   =================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .premium-box {
        padding: 40px 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* ===================================
   RTL Specific Adjustments
   =================================== */
[dir="rtl"] .ms-1,
[dir="rtl"] .ms-2,
[dir="rtl"] .ms-3,
[dir="rtl"] .ms-4,
[dir="rtl"] .ms-5 {
    margin-left: 0 !important;
    margin-right: 0.25rem !important;
}

[dir="rtl"] .ms-2 {
    margin-right: 0.5rem !important;
}

[dir="rtl"] .ms-3 {
    margin-right: 1rem !important;
}

[dir="rtl"] .me-1,
[dir="rtl"] .me-2,
[dir="rtl"] .me-3,
[dir="rtl"] .me-4,
[dir="rtl"] .me-5 {
    margin-right: 0 !important;
    margin-left: 0.25rem !important;
}

[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    #bg-canvas,
    .navbar-custom,
    .back-to-top,
    footer {
        display: none !important;
    }
    
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .glass-card {
        border: 1px solid #000000;
        box-shadow: none;
    }
}
