/*
Theme Name: Ariam-Usaka Child Theme
Theme URI: https://ariamus.com
Description: Professional membership platform for Ariam-Usaka Professionals with social networking, financial dashboard, and election features. Built on BuddyX theme.
Author: LOD Hub
Author URI: https://lodhub.com
Template: buddyx
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: ariam-usaka-child
Tags: social, community, buddypress, membership, elections, financial
*/

/* ==========================================
   Ariam-Usaka Professionals Brand Colors
   ========================================== */

:root {
    /* Primary Brand Colors */
    --au-primary: #1a4d2e;
    --au-primary-light: #2d6b45;
    --au-primary-dark: #0f2e1b;
    --au-accent: #d4af37;
    --au-accent-dark: #b8941f;
    
    /* Semantic Colors */
    --au-success: #28a745;
    --au-warning: #ffc107;
    --au-danger: #dc3545;
    --au-info: #17a2b8;
    
    /* Neutrals */
    --au-gray-50: #f8f9fa;
    --au-gray-100: #e9ecef;
    --au-gray-200: #dee2e6;
    --au-gray-600: #6c757d;
    --au-gray-800: #343a40;
    --au-gray-900: #212529;
    
    /* Typography */
    --au-font-display: 'Sora', serif;
    --au-font-body: 'DM Sans', sans-serif;
}

/* ==========================================
   Override BuddyX Primary Colors
   ========================================== */

.site-header,
.bp-primary-action,
.btn-primary,
.widget-title,
#buddypress .activity-list li.load-more a,
#buddypress .dir-form .item-list-tabs ul li.selected a {
    background-color: var(--au-primary) !important;
}

a,
.site-title a,
#buddypress div.item-list-tabs ul li.current a,
#buddypress div.item-list-tabs ul li a:hover {
    color: var(--au-primary) !important;
}

.btn-primary:hover,
.bp-primary-action:hover {
    background-color: var(--au-primary-light) !important;
}

/* Accent Color Applications */
.badge,
.highlight,
.featured,
#buddypress .activity-list li.load-more a:hover {
    background-color: var(--au-accent) !important;
    color: var(--au-primary-dark) !important;
}

/* ==========================================
   Custom Typography
   ========================================== */

body {
    font-family: var(--au-font-body);
}

h1, h2, h3, h4, h5, h6,
.site-title,
.widget-title {
    font-family: var(--au-font-display);
    font-weight: 700;
}

/* ==========================================
   Financial Dashboard Styles
   ========================================== */

.financial-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.financial-card {
    background: white;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid var(--au-primary);
}

.financial-card.paid { border-left-color: var(--au-success); }
.financial-card.pending { border-left-color: var(--au-warning); }
.financial-card.total { border-left-color: var(--au-accent); }

.financial-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--au-primary);
    font-family: var(--au-font-display);
}

/* Chart Containers */
.chart-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.chart-container {
    position: relative;
    height: 300px;
}

/* ==========================================
   Election Portal Styles
   ========================================== */

.election-countdown {
    background: linear-gradient(135deg, var(--au-accent-dark) 0%, var(--au-accent) 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.countdown-item {
    background: rgba(255,255,255,0.9);
    padding: 1.5rem;
    border-radius: 8px;
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--au-accent-dark);
    display: block;
    font-family: var(--au-font-display);
}

.candidate-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s;
}

.candidate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.candidate-card.voted {
    border: 3px solid var(--au-primary);
    background: linear-gradient(135deg, rgba(26, 77, 46, 0.1) 0%, rgba(26, 77, 46, 0.05) 100%);
}

.btn-vote {
    background: linear-gradient(135deg, var(--au-accent) 0%, var(--au-accent-dark) 100%);
    color: var(--au-primary-dark);
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-vote:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
}

/* ==========================================
   Social Feed Enhancements
   ========================================== */

#buddypress .activity-list li.activity-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: none;
}

#buddypress .activity-avatar img.avatar {
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#buddypress .activity-header p {
    font-weight: 600;
    color: var(--au-gray-900);
}

#buddypress .activity-meta {
    color: var(--au-gray-600);
    font-size: 0.9rem;
}

/* Post Actions */
#buddypress .activity-meta a {
    background: var(--au-gray-50);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-right: 0.5rem;
    transition: all 0.2s;
}

#buddypress .activity-meta a:hover {
    background: var(--au-primary);
    color: white !important;
}

/* ==========================================
   Member Directory Enhancements
   ========================================== */

#buddypress #members-list .item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

#buddypress #members-list .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

#buddypress #members-list .item-avatar img {
    border-radius: 50%;
    border: 4px solid var(--au-primary);
}

/* ==========================================
   User Profile Enhancements
   ========================================== */

#buddypress #item-header-cover-image {
    background: linear-gradient(135deg, var(--au-primary-dark) 0%, var(--au-primary) 50%, var(--au-primary-light) 100%);
    height: 350px;
}

#buddypress #item-header-avatar img {
    border: 6px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#buddypress #item-header-content h2 {
    font-family: var(--au-font-display);
    font-size: 2rem;
    color: var(--au-gray-900);
}

/* Profile Stats */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-box {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-box .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--au-primary);
    display: block;
    font-family: var(--au-font-display);
}

.stat-box .label {
    font-size: 0.9rem;
    color: var(--au-gray-600);
    margin-top: 0.5rem;
}

/* ==========================================
   Notifications & Badges
   ========================================== */

.notification-badge {
    background: #fa3e3e;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    border: 2px solid white;
}

/* ==========================================
   Forms & Inputs
   ========================================== */

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    border: 2px solid var(--au-gray-200);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--au-accent);
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.15);
    outline: none;
}

/* ==========================================
   Buttons
   ========================================== */

.button,
.btn,
button[type="submit"] {
    background: var(--au-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
}

.button:hover,
.btn:hover,
button[type="submit"]:hover {
    background: var(--au-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 77, 46, 0.3);
}

.button.accent,
.btn-accent {
    background: linear-gradient(135deg, var(--au-accent) 0%, var(--au-accent-dark) 100%);
    color: var(--au-primary-dark);
}

/* ==========================================
   Cards & Widgets
   ========================================== */

.widget,
.card,
.content-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.widget-title,
.card-title {
    font-family: var(--au-font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--au-gray-900);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--au-gray-200);
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
    .financial-summary-cards {
        grid-template-columns: 1fr;
    }
    
    .countdown-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-box .number {
        font-size: 1.5rem;
    }
}

/* ==========================================
   Utilities
   ========================================== */

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

.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }
.shadow-sm { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.shadow { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.shadow-lg { box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

/* ==========================================
   Print Styles
   ========================================== */

@media print {
    .site-header,
    .site-footer,
    #buddypress .activity-meta,
    .btn,
    .button {
        display: none;
    }
}
