/**
 * AGS Calculator Valutar - Styles
 * Version: 1.2
 */

.ags-calculator-wrapper {
    padding: 40px 0;
}

.ags-calculator-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 35px;
    margin-bottom: 30px;
    border: 1px solid #bc9c6a;
}

.ags-header {
    text-align: center;
    margin-bottom: 30px;
}

.ags-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f5f0e8 0%, #e8dcc8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.ags-icon svg {
    width: 35px;
    height: 35px;
    stroke: #c4a574;
    fill: none;
}

.ags-header h2 {
    font-size: 26px;
    font-weight: 400;
    color: #111;
    margin-bottom: 5px;
    letter-spacing: 1px;
    font-family: 'Cormorant SC', arial;
}

.ags-subtitle {
    font-size: 16px;
    color: #111;
    font-style: italic;
}

.ags-divider {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c4a574, transparent);
    margin: 25px auto;
    position: relative;
}

.ags-divider::before {
    content: '';
    position: absolute;
    width: 7px;
    height: 7px;
    background: #c4a574;
    transform: rotate(45deg);
    top: -2px;
    left: 50%;
    margin-left: -3.5px;
}

.ags-form-group {
    margin-bottom: 25px;
}

.ags-label {
    font-size: 13px;
    color: #111;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ags-input-wrapper {
    position: relative;
}

.ags-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e8ecf1;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.ags-input:focus {
    outline: none;
    border-color: #c4a574;
    background: white;
    box-shadow: 0 0 0 4px rgba(196, 165, 116, 0.1);
}

.ags-select {
    position: absolute;
    right: 5px;
    top: 5px;
    padding: 10px 20px;
    border: 2px solid #c4a574;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #c4a574;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ags-select:hover {
    background: #faf8f5;
}

.ags-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(196, 165, 116, 0.1);
}

.ags-swap-btn {
    background: white;
    border: 2px solid #e8ecf1;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: -10px auto 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.ags-swap-btn:hover {
    background: #c4a574;
    border-color: #c4a574;
    transform: rotate(180deg);
}

.ags-swap-btn svg {
    width: 20px;
    height: 20px;
    stroke: #95a5a6;
    transition: stroke 0.3s ease;
}

.ags-swap-btn:hover svg {
    stroke: white;
}

/* Buttons Row */
.ags-buttons-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.ags-calculate-btn,
.ags-locations-btn {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 165, 116, 0.3);
    text-transform: uppercase;
}

.ags-calculate-btn {
    background: linear-gradient(135deg, #FFE5A6 10%, #B4903A 55%, #816936 100%);
}

.ags-locations-btn {
    background: linear-gradient(135deg, #c4a574 0%, #9d8560 100%);
}

.ags-calculate-btn:hover,
.ags-locations-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 165, 116, 0.4);
}

/* Result Cards */
.ags-result-card {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 25px;
    margin-top: 30px !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ags-result-card.best {
    border-color: #bc9c6a;
    box-shadow: 0 8px 25px rgba(196, 165, 116, 0.15);
}

.ags-result-card.unavailable {
    opacity: 0.85;
}

.ags-result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 15px;
}

.ags-location-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f5f0e8, #e8dcc8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 15px;
}

.ags-location-icon svg {
    width: 24px;
    height: 24px;
    stroke: #c4a574;
    fill: none;
}

.ags-result-title {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin: 0 0 5px 0;
    flex: 1;
}

.ags-best-badge {
    background: #bc9c6a;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    border: 1px solid;
}

.ags-unavailable-badge {
    background: #f6f6f6;
    color: #ff8a8d;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    border: 1px solid #ccc;
}

.ags-result-address {
    font-size: 16px;
    color: #111;
    line-height: 1.6;
    margin-bottom: 15px;
    padding: 10px;
    padding-left: 15px;
    border: 1px solid #ccc;
    border-left: 3px solid #bc9c6a;
    border-radius: 10px;
}

.ags-exchange-info {
    background: #fafbfc;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
}

.ags-amounts {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px dashed #e8ecf1;
}

.ags-amount-box {
    text-align: center;
}

.ags-amount-label {
    font-size: 11px;
    color: #111;
    text-transform: uppercase;
    margin-bottom: 5px;
    font-weight: 600;
}

.ags-amount-value {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
}

.ags-amount-value.primary {
    color: #bc9c6a;
    font-size: 20px;
}

.ags-arrow {
    color: #bc9c6a;
    font-size: 24px;
    font-weight: 300;
}

.ags-rates-box {
    background: white;
    border-radius: 8px;
    padding: 12px;
}

.ags-rate-info {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.ags-rate-info:last-child {
    margin-bottom: 0;
}

.ags-rate-label {
    display: inline-block;
    min-width: 100px;
    font-weight: 400;
}

.ags-rate-value {
    color: #2c3e50;
    font-weight: 700;
}

/* Accordion Styles */
.ags-currencies-accordion {
    margin: 15px 0;
}

.ags-accordion-item {
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.ags-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #fafbfc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ags-accordion-header:hover {
    background: #f5f0e8;
}

.ags-accordion-header.active {
    background: #f5f0e8;
    border-bottom: 1px solid #e8ecf1;
}

.ags-currency-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.ags-accordion-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.ags-accordion-header.active .ags-accordion-icon {
    transform: rotate(180deg);
}

.ags-accordion-icon svg {
    width: 20px;
    height: 20px;
    stroke: #bc9c6a;
    fill: none;
}

.ags-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
}

.ags-accordion-content.active {
    max-height: 300px;
}

.ags-currency-details {
    padding: 15px;
}

.ags-currency-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ags-currency-detail-row:last-child {
    border-bottom: none;
}

.ags-detail-label {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

.ags-detail-value {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 700;
}

/* Contact Box */
.ags-contact-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.ags-contact-link {
    text-decoration: none;
    flex: 1;
    transition: all 0.3s ease;
}

.ags-contact-link:hover {
    transform: translateY(-2px);
}

.ags-contact-link:hover .ags-contact-item {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ags-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    color: #111;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px #1111114a;
    background: #fff;
    border-radius: 100px;
}

.ags-contact-item svg {
    width: 16px;
    height: 16px;
    stroke: #bc9c6a;
    fill: none;
}

.ags-loading {
    text-align: center;
    padding: 60px 20px;
    color: #95a5a6;
}

.ags-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top-color: #c4a574;
    border-radius: 50%;
    animation: ags-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes ags-spin {
    to { transform: rotate(360deg); }
}

div#ags_rezultate {
    display: flex;
    flex-flow: row wrap;
}

.ags-error {
    background: #fee;
    border: 2px solid #e74c3c;
    border-radius: 16px;
    padding: 20px;
    color: #c0392b;
    text-align: center;
    margin-top: 20px;
}

.ags-no-results {
    text-align: center;
    padding: 40px;
    color: #95a5a6;
}

.ags-calc-row1 {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding-top: 200px;
}

.ags-calc-row1 .row > .col-md-8 > .wpb_wrapper h3 {
    text-align: left;
    font-family: 'Cormorant SC', arial;
    font-size: 46px;
    font-weight: 400;
    color: #3a3a3a;
    margin: 10px auto 30px;
}

.ags-calculator-wrapper > .container > .row:first-child {
    display: flex;
    align-items: center;
}

.ags-calc-row1 .row > .col-md-8 > .wpb_wrapper p {
    text-align: left;
}

.ags-status-badge.limited {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
}

.ags-status-badge.unavailable {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.ags-status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ags-status-badge.available {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}
/* Responsive Design */
@media (max-width: 991px) {
    .ags-calculator-card {
        position: relative;
        top: 0;
    }
    
    .ags-calculator-wrapper {
        padding: 20px 0;
    }
}

@media (max-width: 767px) {
    .ags-calculator-card {
        padding: 25px 20px;
    }
    
    .ags-header h2 {
        font-size: 22px;
    }
    
    .ags-result-card {
        padding: 20px 15px;
    }
    
    .ags-amounts {
        flex-direction: column;
        gap: 15px;
    }
    
    .ags-arrow {
        transform: rotate(90deg);
    }
    
    .ags-contact-box {
        flex-direction: column;
    }
    
    .ags-result-address {
        margin-top: 10px;
    }
    
    .ags-calc-row1 {
        padding-top: 0px;
    }
    
    .ags-calc-row1 .row > .col-md-8 > .wpb_wrapper h3 {
        font-size: 32px;
        line-height: 42px;
    }
    
    .ags-calc-row1 .row > .col-md-8 > .wpb_wrapper {
        padding: 15px;
        margin-bottom: 30px !important;
    }
    
    .ags-calculator-wrapper > .container > .row:first-child {
        display: block;
    }
    
    .ags-buttons-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .ags-input {
        font-size: 16px;
        padding: 12px 15px;
    }
    
    .ags-select {
        font-size: 12px;
        padding: 8px 15px;
    }
    
    .ags-amount-value {
        font-size: 18px;
    }
    
    .ags-amount-value.primary {
        font-size: 20px;
    }
}