/*
Theme Name: Multi-Currency Contributions
Description: A complete multi-currency contribution management system for group fundraising drives with role-based access control, versioned exchange rates, and mobile-responsive design.
Author: Your Name
Version: 1.0.0
Text Domain: multi-currency-contributions
*/

/* Frontend Styles for Multi-Currency Contributions */

/* Reset and Base Styles */
.mcc-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

.mcc-container * {
    box-sizing: border-box;
}

/* Login Page Styles */
.mcc-login-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.mcc-login-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 600;
}

.mcc-login-header p {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 16px;
}

.mcc-login-button {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.mcc-login-button:hover {
    background: linear-gradient(135deg, #2980b9, #1abc9c);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

/* Group Selection Styles */
.mcc-group-selection {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.mcc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.mcc-header h2 {
    color: #2c3e50;
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

.mcc-user-info {
    text-align: right;
    color: #7f8c8d;
}

.mcc-user-info p {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.mcc-logout-link {
    color: #e74c3c;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.mcc-logout-link:hover {
    color: #c0392b;
    text-decoration: underline;
}

.mcc-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.mcc-group-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e1e8ed;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.mcc-group-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: inherit;
}

.mcc-group-card h3 {
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-size: 22px;
    font-weight: 600;
}

.mcc-group-card p {
    color: #7f8c8d;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.mcc-group-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
}

.mcc-drives-count {
    background: #3498db;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.mcc-currencies {
    font-size: 14px;
    color: #95a5a6;
    font-weight: 500;
}

/* Drive List Styles */
.mcc-drive-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.mcc-breadcrumb {
    margin-bottom: 25px;
    padding: 15px 0;
    border-bottom: 1px solid #ecf0f1;
}

.mcc-breadcrumb a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.mcc-breadcrumb a:hover {
    text-decoration: underline;
}

.mcc-breadcrumb span {
    color: #7f8c8d;
    margin: 0 10px;
}

.mcc-drives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.mcc-drive-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e1e8ed;
}

.mcc-drive-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.mcc-drive-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.mcc-drive-card h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    flex: 1;
}

.mcc-drive-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 15px;
}

.mcc-drive-status.active {
    background: #d5f4e6;
    color: #27ae60;
}

.mcc-drive-status.completed {
    background: #dbeafe;
    color: #3b82f6;
}

.mcc-drive-status.cancelled {
    background: #fee2e2;
    color: #ef4444;
}

.mcc-drive-description {
    color: #7f8c8d;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.mcc-drive-dates {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 14px;
    color: #95a5a6;
}

.mcc-drive-progress {
    margin: 20px 0;
}

.mcc-progress-bar {
    width: 100%;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.mcc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    transition: width 0.3s ease;
}

.mcc-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 8px;
}

.mcc-drive-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.mcc-btn {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mcc-btn-primary {
    background: #3498db;
    color: white;
}

.mcc-btn-primary:hover {
    background: #2980b9;
    color: white;
    text-decoration: none;
}

.mcc-btn-secondary {
    background: #95a5a6;
    color: white;
}

.mcc-btn-secondary:hover {
    background: #7f8c8d;
    color: white;
    text-decoration: none;
}

.mcc-btn-success {
    background: #27ae60;
    color: white;
}

.mcc-btn-success:hover {
    background: #229954;
    color: white;
    text-decoration: none;
}

/* Drive Summary Styles */
.mcc-drive-summary {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.mcc-summary-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.mcc-summary-header h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
}

.mcc-summary-header p {
    margin: 0;
    font-size: 18px;
    opacity: 0.9;
}

.mcc-summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.mcc-stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.mcc-stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.mcc-stat-label {
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mcc-currency-totals {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.mcc-currency-totals h3 {
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
}

.mcc-currency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.mcc-currency-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.mcc-currency-code {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 600;
    margin-bottom: 8px;
}

.mcc-currency-amount {
    font-size: 24px;
    font-weight: 700;
    color: #27ae60;
}

.mcc-recent-contributions {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.mcc-recent-contributions h3 {
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
}

.mcc-contribution-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #ecf0f1;
}

.mcc-contribution-item:last-child {
    border-bottom: none;
}

.mcc-contribution-info {
    flex: 1;
}

.mcc-contribution-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.mcc-contribution-date {
    font-size: 14px;
    color: #7f8c8d;
}

.mcc-contribution-amount {
    font-size: 18px;
    font-weight: 700;
    color: #27ae60;
}

.mcc-share-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.mcc-share-section h3 {
    color: #2c3e50;
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
}

.mcc-share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.mcc-share-btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mcc-share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.mcc-share-btn.whatsapp:hover {
    background: #128c7e;
    color: white;
    text-decoration: none;
}

.mcc-share-btn.copy {
    background: #6c757d;
    color: white;
}

.mcc-share-btn.copy:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
}

/* Contribution Form Styles */
.mcc-contribution-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.mcc-form-group {
    margin-bottom: 25px;
}

.mcc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.mcc-form-group input,
.mcc-form-group select,
.mcc-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.mcc-form-group input:focus,
.mcc-form-group select:focus,
.mcc-form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.mcc-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.mcc-submit-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.mcc-submit-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1abc9c);
}

.mcc-submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* Notifications */
.mcc-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.mcc-notification.show {
    transform: translateX(0);
}

.mcc-notification-success {
    background: #27ae60;
}

.mcc-notification-error {
    background: #e74c3c;
}

.mcc-notification-info {
    background: #3498db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mcc-container {
        padding: 10px;
    }
    
    .mcc-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .mcc-groups-grid,
    .mcc-drives-grid {
        grid-template-columns: 1fr;
    }
    
    .mcc-summary-stats {
        grid-template-columns: 1fr;
    }
    
    .mcc-currency-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mcc-drive-actions {
        flex-direction: column;
    }
    
    .mcc-contribution-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .mcc-share-buttons {
        flex-direction: column;
    }
    
    .mcc-summary-header {
        padding: 20px;
    }
    
    .mcc-summary-header h1 {
        font-size: 24px;
    }
    
    .mcc-summary-header p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .mcc-login-container,
    .mcc-contribution-form {
        margin: 20px 10px;
        padding: 20px;
    }
    
    .mcc-currency-grid {
        grid-template-columns: 1fr;
    }
    
    .mcc-group-card,
    .mcc-drive-card {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .mcc-header,
    .mcc-breadcrumb,
    .mcc-drive-actions,
    .mcc-share-section {
        display: none;
    }
    
    .mcc-container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    .mcc-drive-summary,
    .mcc-contribution-form {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* WordPress Default Theme Integration */
body {
    margin: 0;
    padding: 0;
}

.site-main {
    padding: 0;
}

.entry-content {
    margin: 0;
}

.entry-header {
    display: none;
}

.site-header,
.site-footer {
    display: none;
}

/* Theme-specific overrides */
.mcc-page {
    min-height: 100vh;
    background: #f8f9fa;
}

.mcc-page .site-header,
.mcc-page .site-footer,
.mcc-page .entry-header {
    display: none !important;
}

.mcc-page .site-main {
    margin: 0 !important;
    padding: 0 !important;
}