/*
 * Theme Name:     White Africa — Classima Child
 * Theme URI:      https://white.africa
 * Author:         Eyooly Design Team
 * Author URI:     https://eyooly.com
 * Description:    Custom child theme for White Africa marketplace, built on Classima. Designed for the African classifieds market with custom branding, colors, and features.
 * Version:        1.0.0
 * Text Domain:    white-africa
 * Tags:           marketplace, classifieds, africa, e-commerce, custom-menu, featured-images, footer-widgets, theme-options, translation-ready
 * License:        Envato split License
 * License URI:    https://themeforest.net/licenses/terms/regular
 * Template:       classima
 */

/* =============================================
   WHITE AFRICA — CUSTOM CHILD THEME STYLES
   ============================================= */

/* Import parent theme styles first */
@import url("../classima/style.css");

/* =============================================
   1. CSS VARIABLES & COLOR SYSTEM
   ============================================= */
:root {
    --wa-primary: #1a1a2e;
    --wa-secondary: #c9a227;
    --wa-accent: #e94560;
    --wa-footer-bg: #2d0a0a;
    --wa-footer-text: #d4d4d4;
    --wa-body: #444444;
    --wa-heading: #1a1a2e;
    --wa-light: #f5f5f5;
    --wa-white: #ffffff;
    --wa-gold-light: #f0d878;
    --wa-burgundy-light: #4a1a1a;
    --wa-border: #e0e0e0;
    --wa-shadow: rgba(0, 0, 0, 0.08);
    --wa-radius: 8px;
    --wa-radius-lg: 12px;
    --wa-transition: all 0.3s ease;
}

/* =============================================
   2. GLOBAL TYPOGRAPHY
   ============================================= */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--wa-body);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--wa-heading);
    line-height: 1.3;
}

a {
    color: var(--wa-secondary);
    transition: var(--wa-transition);
}

a:hover {
    color: var(--wa-accent);
    text-decoration: none;
}

/* =============================================
   3. HEADER CUSTOMIZATIONS
   ============================================= */
.main-header {
    background: var(--wa-white);
    box-shadow: 0 2px 15px var(--wa-shadow);
    padding: 15px 0;
}

.site-branding img {
    max-height: 50px;
    width: auto;
}

/* Post Ad Button */
.header-btn-area .header-btn,
.rtcl-submit-listing-button {
    background: linear-gradient(135deg, var(--wa-secondary), var(--wa-gold-light));
    color: var(--wa-primary) !important;
    border: none;
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--wa-transition);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.header-btn-area .header-btn:hover,
.rtcl-submit-listing-button:hover {
    background: linear-gradient(135deg, var(--wa-accent), #ff6b81);
    color: var(--wa-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

/* Header icons */
.header-login-icon,
.header-chat-icon {
    color: var(--wa-primary);
    font-size: 18px;
    margin-left: 15px;
    transition: var(--wa-transition);
}

.header-login-icon:hover,
.header-chat-icon:hover {
    color: var(--wa-secondary);
}

/* Navigation */
.main-navigation ul li a {
    color: var(--wa-primary);
    font-weight: 500;
    font-size: 15px;
    padding: 10px 18px;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
    color: var(--wa-secondary);
}

.main-navigation ul li ul.sub-menu {
    border-top: 3px solid var(--wa-secondary);
    box-shadow: 0 10px 30px var(--wa-shadow);
    border-radius: 0 0 var(--wa-radius) var(--wa-radius);
}

/* Sticky header */
.sticky .main-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* =============================================
   4. SEARCH BAR & FILTERS
   ============================================= */
.rtcl-search-inline-form {
    background: var(--wa-white);
    border-radius: var(--wa-radius-lg);
    box-shadow: 0 4px 20px var(--wa-shadow);
    padding: 8px;
}

.rtcl-search-inline-form .rtcl-search-input-button {
    background: var(--wa-secondary);
    color: var(--wa-primary);
    border-radius: var(--wa-radius);
    font-weight: 600;
    transition: var(--wa-transition);
}

.rtcl-search-inline-form .rtcl-search-input-button:hover {
    background: var(--wa-accent);
    color: var(--wa-white);
}

/* Location selector */
.rtcl-search-inline-form .rtcl-geo-address-field {
    border-right: 1px solid var(--wa-border);
}

/* =============================================
   5. LISTING CARDS
   ============================================= */
.rtcl-listing-item {
    background: var(--wa-white);
    border-radius: var(--wa-radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 10px var(--wa-shadow);
    transition: var(--wa-transition);
    border: 1px solid var(--wa-border);
}

.rtcl-listing-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.rtcl-listing-item .listing-thumb img {
    border-radius: var(--wa-radius-lg) var(--wa-radius-lg) 0 0;
    transition: var(--wa-transition);
}

.rtcl-listing-item:hover .listing-thumb img {
    transform: scale(1.05);
}

/* Listing price */
.rtcl-listing-item .rtcl-price {
    color: var(--wa-accent);
    font-weight: 700;
    font-size: 18px;
}

.rtcl-listing-item .rtcl-price .rtcl-price-type {
    color: var(--wa-body);
    font-size: 13px;
    font-weight: 400;
}

/* Listing badges */
.rtcl-listing-badge {
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
}

.rtcl-listing-badge-featured {
    background: var(--wa-secondary);
    color: var(--wa-primary);
}

.rtcl-listing-badge-new {
    background: var(--wa-accent);
    color: var(--wa-white);
}

/* Verified seller badge */
.wa-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
}

.wa-verified-badge::before {
    content: "✓";
    background: #2e7d32;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/* =============================================
   6. CATEGORY GRID
   ============================================= */
.rtcl-categories-widget .rtcl-category-grid .cat-item,
.classima-category-grid .cat-item {
    background: var(--wa-white);
    border-radius: var(--wa-radius-lg);
    padding: 25px 15px;
    text-align: center;
    transition: var(--wa-transition);
    border: 1px solid var(--wa-border);
}

.rtcl-categories-widget .rtcl-category-grid .cat-item:hover,
.classima-category-grid .cat-item:hover {
    background: var(--wa-primary);
    border-color: var(--wa-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(26, 26, 46, 0.2);
}

.rtcl-categories-widget .rtcl-category-grid .cat-item:hover .cat-title,
.classima-category-grid .cat-item:hover .cat-title {
    color: var(--wa-secondary);
}

.rtcl-categories-widget .rtcl-category-grid .cat-icon,
.classima-category-grid .cat-icon {
    color: var(--wa-secondary);
    font-size: 36px;
    margin-bottom: 12px;
    transition: var(--wa-transition);
}

.rtcl-categories-widget .rtcl-category-grid .cat-item:hover .cat-icon,
.classima-category-grid .cat-item:hover .cat-icon {
    color: var(--wa-gold-light);
    transform: scale(1.1);
}

/* =============================================
   7. APP DOWNLOAD SECTION
   ============================================= */
.wa-app-section {
    background: linear-gradient(135deg, var(--wa-light), var(--wa-white));
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.wa-app-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.wa-app-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.wa-app-section h2 .highlight {
    color: var(--wa-accent);
    font-weight: 800;
}

.wa-app-badges {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.wa-app-badges a {
    display: inline-block;
    transition: var(--wa-transition);
}

.wa-app-badges a:hover {
    transform: scale(1.05);
}

/* =============================================
   8. FOOTER
   ============================================= */
footer {
    background: var(--wa-footer-bg);
    color: var(--wa-footer-text);
}

.footer-top-area {
    padding: 70px 0 40px;
}

.footer-top-area .widget-title {
    color: var(--wa-white);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-top-area .widget-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--wa-secondary);
    border-radius: 2px;
}

.footer-top-area a {
    color: var(--wa-footer-text);
    transition: var(--wa-transition);
}

.footer-top-area a:hover {
    color: var(--wa-secondary);
    padding-left: 5px;
}

.footer-top-area .widget ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 0;
}

.footer-top-area .widget p {
    color: var(--wa-footer-text);
    opacity: 0.85;
    line-height: 1.8;
}

/* Social icons in footer */
.wa-social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.wa-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--wa-burgundy-light);
    color: var(--wa-footer-text);
    transition: var(--wa-transition);
    font-size: 16px;
}

.wa-social-links a:hover {
    background: var(--wa-secondary);
    color: var(--wa-primary);
    transform: translateY(-3px);
}

/* Footer bottom */
.footer-bottom-area {
    background: #1a0505;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-area .copyright-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-bottom-area .copyright-text a {
    color: var(--wa-secondary);
    font-weight: 600;
}

.footer-bottom-area .copyright-text a:hover {
    color: var(--wa-gold-light);
}

/* Payment icons */
.payment-icons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.payment-icons img {
    border-radius: 4px;
    opacity: 0.8;
    transition: var(--wa-transition);
}

.payment-icons img:hover {
    opacity: 1;
}

/* =============================================
   9. BUTTONS & FORMS
   ============================================= */
.btn-primary,
.rtcl-btn,
.rtcl-submit-listing-button {
    background: var(--wa-secondary);
    color: var(--wa-primary);
    border: none;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    transition: var(--wa-transition);
}

.btn-primary:hover,
.rtcl-btn:hover {
    background: var(--wa-accent);
    color: var(--wa-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.3);
}

.btn-outline {
    border: 2px solid var(--wa-secondary);
    color: var(--wa-secondary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--wa-secondary);
    color: var(--wa-primary);
}

/* Form inputs */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
    border: 1px solid var(--wa-border);
    border-radius: var(--wa-radius);
    padding: 12px 15px;
    font-size: 15px;
    transition: var(--wa-transition);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--wa-secondary);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
    outline: none;
}

/* =============================================
   10. HOW IT WORKS / FEATURES
   ============================================= */
.wa-feature-box {
    text-align: center;
    padding: 40px 25px;
    background: var(--wa-white);
    border-radius: var(--wa-radius-lg);
    box-shadow: 0 5px 20px var(--wa-shadow);
    transition: var(--wa-transition);
    border-bottom: 4px solid transparent;
}

.wa-feature-box:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--wa-secondary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.wa-feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--wa-secondary), var(--wa-gold-light));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--wa-primary);
    margin-bottom: 20px;
    transition: var(--wa-transition);
}

.wa-feature-box:hover .wa-feature-icon {
    transform: rotateY(360deg);
    background: linear-gradient(135deg, var(--wa-accent), #ff6b81);
    color: var(--wa-white);
}

.wa-feature-box h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.wa-feature-box p {
    color: var(--wa-body);
    font-size: 15px;
}

/* =============================================
   11. RESPONSIVE ADJUSTMENTS
   ============================================= */
@media (max-width: 991px) {
    .main-header {
        padding: 10px 0;
    }
    
    .site-branding img {
        max-height: 40px;
    }
    
    .wa-app-section {
        padding: 50px 0;
    }
    
    .wa-app-section h2 {
        font-size: 28px;
    }
    
    .footer-top-area {
        padding: 40px 0 20px;
    }
    
    .wa-feature-box {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .rtcl-search-inline-form {
        border-radius: var(--wa-radius);
    }
    
    .rtcl-listing-item {
        margin-bottom: 20px;
    }
    
    .wa-app-badges {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .payment-icons {
        justify-content: center;
        margin-top: 15px;
    }
    
    .footer-bottom-area .row > div {
        text-align: center !important;
    }
}

/* =============================================
   12. ANIMATIONS & UTILITIES
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wa-animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.wa-delay-1 { animation-delay: 0.1s; }
.wa-delay-2 { animation-delay: 0.2s; }
.wa-delay-3 { animation-delay: 0.3s; }

/* Scroll-to-top button */
#back-to-top {
    background: var(--wa-secondary);
    color: var(--wa-primary);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.4);
    transition: var(--wa-transition);
}

#back-to-top:hover {
    background: var(--wa-accent);
    color: var(--wa-white);
    transform: translateY(-3px);
}

/* Loading spinner */
.wa-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--wa-border);
    border-top-color: var(--wa-secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Trust badges */
.wa-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--wa-light);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: var(--wa-body);
}

.wa-trust-badge i {
    color: var(--wa-secondary);
    font-size: 16px;
}
