/* Country Currency Gateway - Shortcode Styles */

/* Main display container */
.ccg-display {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

/* Layout: Row (default) */
.ccg-display.ccg-layout-row {
    flex-direction: row;
}

/* Layout: Column */
.ccg-display.ccg-layout-column {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

/* Flag sizes */
.ccg-flag {
    display: inline-block;
    line-height: 1;
}

.ccg-flag.ccg-flag-small {
    font-size: 16px;
}

.ccg-flag.ccg-flag-medium {
    font-size: 24px;
}

.ccg-flag.ccg-flag-large {
    font-size: 32px;
}

.ccg-flag-only {
    display: inline-block;
    line-height: 1;
}

.ccg-flag-only.ccg-flag-small {
    font-size: 20px;
}

.ccg-flag-only.ccg-flag-medium {
    font-size: 32px;
}

.ccg-flag-only.ccg-flag-large {
    font-size: 48px;
}

/* Country name */
.ccg-country {
    font-weight: 600;
    color: #333;
}

/* Separator */
.ccg-separator {
    color: #999;
    margin: 0 4px;
}

/* Currency info */
.ccg-currency-info {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ccg-currency-symbol {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1em;
}

.ccg-currency-code {
    font-weight: 500;
    color: #555;
    text-transform: uppercase;
    font-size: 0.95em;
}

/* Style: Default */
.ccg-display.ccg-display-default {
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

/* Style: Minimal */
.ccg-display.ccg-display-minimal {
    padding: 4px 0;
    background: transparent;
    border: none;
}

/* Style: Badge */
.ccg-display.ccg-display-badge {
    padding: 6px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.ccg-display.ccg-display-badge .ccg-country,
.ccg-display.ccg-display-badge .ccg-currency-symbol,
.ccg-display.ccg-display-badge .ccg-currency-code {
    color: #fff;
}

.ccg-display.ccg-display-badge .ccg-separator {
    color: rgba(255, 255, 255, 0.6);
}

/* Individual shortcode styles */
.ccg-country-name,
.ccg-country-code,
.ccg-country-both {
    font-weight: 600;
    color: #333;
}

.ccg-currency-symbol-only {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.ccg-currency-code-only {
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
}

.ccg-currency-full {
    font-weight: 600;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .ccg-display {
        font-size: 13px;
    }
    
    .ccg-flag.ccg-flag-medium {
        font-size: 20px;
    }
    
    .ccg-flag.ccg-flag-large {
        font-size: 28px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .ccg-display.ccg-display-default {
        background: #2d3748;
        border-color: #4a5568;
    }
    
    .ccg-country,
    .ccg-currency-symbol,
    .ccg-currency-code {
        color: #e2e8f0;
    }
    
    .ccg-separator {
        color: #718096;
    }
}

/* Header integration styles */
.site-header .ccg-display,
.header-top .ccg-display {
    margin: 0;
}

/* Widget area styles */
.widget .ccg-display {
    margin-bottom: 10px;
}

/* Animation on hover */
.ccg-display.ccg-display-badge {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ccg-display.ccg-display-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
