/* Second Hand Gold Calculator Styles */

/* Load Aria Fonts */
@font-face {
    font-family: 'AriaWebFaNum';
    src: url('fonts/AriaWebFaNum-Regular.woff2') format('woff2'),
         url('fonts/AriaWebFaNum-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'AriaWebFaNum';
    src: url('fonts/AriaWebFaNum-Bold.woff2') format('woff2'),
         url('fonts/AriaWebFaNum-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

/* Main Container */
.secondhand-gold-calculator-container {
    font-family: 'AriaWebFaNum', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    direction: rtl;
    text-align: right;
}

/* Header Styles */
.secondhand-calculator-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaea;
}

.secondhand-calculator-header h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Input Controls */
.secondhand-calculator-controls {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.secondhand-input-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.secondhand-input-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.secondhand-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.secondhand-input-group input, .secondhand-input-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s;
    text-align: right;
    box-sizing: border-box;
    font-family: 'AriaWebFaNum', sans-serif;
}

.secondhand-input-group input:focus, .secondhand-input-group select:focus {
    border-color: #d4af37;
    outline: none;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.secondhand-input-group input:disabled {
    background: #e9ecef;
    cursor: not-allowed;
}

/* Buttons */
#secondhand-calculate-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #d4af37, #f9d423);
    color: #333;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#secondhand-calculate-btn:hover {
    background: linear-gradient(135deg, #c9a227, #e8c315);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Results Container */
.secondhand-results-container {
    display: none;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.secondhand-results-container.show {
    display: flex;
    animation: slideIn 0.5s ease;
}

.secondhand-result-card {
    flex: 1;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    min-width: 300px;
}

.secondhand-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.secondhand-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.secondhand-card-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.secondhand-badge-no-fee, .secondhand-badge-fees {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.secondhand-badge-no-fee {
    background: #e8f5e9;
    color: #2e7d32;
}

.secondhand-badge-fees {
    background: #ffebee;
    color: #c62828;
}

.secondhand-result-value {
    font-size: 28px;
    font-weight: 700;
    margin: 15px 0;
    color: #333;
    text-align: left;
}

.secondhand-our-offer .secondhand-result-value {
    color: #d4af37;
}

.secondhand-competitors .secondhand-result-value {
    color: #666;
}

.secondhand-result-details {
    margin: 20px 0;
}

.secondhand-result-details p {
    margin: 8px 0;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.secondhand-result-details span {
    text-align: left;
    flex-grow: 1;
}

.secondhand-formula-text {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.secondhand-cta-button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #d4af37, #f9d423);
    color: #333;
    text-decoration: none;
    margin-top: 10px;
}

.secondhand-cta-button:hover {
    background: linear-gradient(135deg, #c9a227, #e8c315);
}

/* Our Offer Card */
.secondhand-our-offer {
    background: white;
    border: 2px solid #ffecb3;
}

/* Competitors Card */
.secondhand-competitors {
    background: white;
    border: 1px solid #e0e0e0;
}

/* Loading and Error */
.secondhand-loading {
    text-align: center;
    color: #d4af37;
    font-style: italic;
    padding: 20px;
    display: none;
}

.secondhand-error {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
    display: none;
}

/* Buy/Sell Sections */
.secondhand-buy-sell-section {
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
}

.secondhand-buy-section {
    background-color: #f5f5f5;
    border-left: 4px solid #4CAF50;
}

.secondhand-sell-section {
    background-color: #f5f5f5;
    border-left: 4px solid #F44336;
    margin-top: 15px;
}

.secondhand-section-title {
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.secondhand-buy-section .secondhand-section-title {
    color: #4CAF50;
}

.secondhand-sell-section .secondhand-section-title {
    color: #F44336;
}

/* Responsive Design */
@media (max-width: 768px) {
    .secondhand-input-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .secondhand-input-group {
        min-width: 100%;
    }
    
    .secondhand-results-container {
        flex-direction: column;
    }
    
    .secondhand-calculator-header h2 {
        font-size: 20px;
    }
    
    .secondhand-result-value {
        font-size: 24px;
    }
}

/* Font Awesome Icons */
.fas.fa-info-circle {
    font-size: 16px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}