/**
 * Gemini Prices Plugin - Premium Design
 * تصميم احترافي وعصري
 * اللون الرئيسي: #30697D
 */

/* ============================================
   Reset & Variables
   ============================================ */
.gp-prices-container {
    --primary: #30697D;
    --primary-dark: #234f5c;
    --bg-light: #f7f9fb;
    --white: #ffffff;
    --text-dark: #1a2b3c;
    --text-gray: #6b7c8d;
    --border: #e3e8ed;
    --shadow: 0 4px 20px rgba(48, 105, 125, 0.08);
    --shadow-lg: 0 8px 30px rgba(48, 105, 125, 0.12);
}

/* ============================================
   Main Container
   ============================================ */
.gp-prices-container {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    border-radius: 16px;
    margin: 30px 0;
    direction: rtl;
    text-align: right;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.gp-prices-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ============================================
   Header
   ============================================ */
.gp-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 32px 24px;
    text-align: center;
}

.gp-header-compact {
    padding: 28px 24px;
}

.gp-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--white) !important;
    letter-spacing: -0.5px;
}

.gp-subtitle {
    font-size: 15px;
    opacity: 0.9;
    margin: 0;
    color: var(--white) !important;
    font-weight: 400;
}

/* ============================================
   Summary Bar
   ============================================ */
.gp-summary {
    display: flex;
    justify-content: center;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    padding: 0;
}

.gp-summary-item {
    flex: 1;
    max-width: 200px;
    padding: 20px 24px;
    text-align: center;
    border-left: 1px solid var(--border);
}

.gp-summary-item:last-child {
    border-left: none;
}

.gp-summary-label {
    display: block;
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 6px;
    font-weight: 500;
}

.gp-summary-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

/* ============================================
   Warning
   ============================================ */
.gp-warning {
    background: linear-gradient(135deg, #fef9e7 0%, #fef3c7 100%);
    padding: 14px 24px;
    text-align: center;
    font-size: 14px;
    color: #92400e;
    border-bottom: 1px solid #fcd34d;
}

/* ============================================
   Sections
   ============================================ */
.gp-section {
    padding: 28px 24px;
    background: var(--white);
}

.gp-section+.gp-section {
    border-top: 1px solid var(--border);
}

.gp-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary);
}

.gp-section-title span {
    font-size: 24px;
}

.gp-section-title h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

/* ============================================
   Price Grid
   ============================================ */
.gp-prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

/* ============================================
   Price Card
   ============================================ */
.gp-price-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    min-height: 140px;
}

.gp-price-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.gp-iron-card {
    border-top: 4px solid var(--primary);
}

.gp-cement-card {
    border-top: 4px solid var(--primary);
}

.gp-product-info {
    flex: 1;
    margin-bottom: 16px;
}

.gp-product-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 6px 0;
}

.gp-size {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-top: 4px;
}

.gp-brands {
    display: block;
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 8px;
}

/* ============================================
   Price Tag
   ============================================ */
.gp-price-tag {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}

.gp-price-tag span {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 4px;
}

.gp-cement-tag {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* ============================================
   Update Info
   ============================================ */
.gp-update-info {
    padding: 20px 24px;
    text-align: center;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
}

.gp-update-info p {
    font-size: 13px;
    color: var(--text-gray);
    margin: 6px 0;
}

.gp-footer-compact {
    padding: 16px 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-gray);
    background: var(--bg-light);
    border-top: 1px solid var(--border);
}

/* ============================================
   Disclaimer
   ============================================ */
.gp-disclaimer {
    padding: 18px 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-gray);
    background: var(--bg-light);
    border-top: 1px solid var(--border);
}

/* ============================================
   No Data
   ============================================ */
.gp-no-data {
    grid-column: 1 / -1;
    padding: 60px 24px;
    text-align: center;
    color: var(--text-gray);
    font-size: 16px;
    background: var(--bg-light);
    border-radius: 12px;
}

/* ============================================
   Responsive - Tablet
   ============================================ */
@media screen and (max-width: 768px) {
    .gp-prices-container {
        margin: 20px 0;
        border-radius: 12px;
    }

    .gp-header {
        padding: 24px 20px;
    }

    .gp-title {
        font-size: 22px;
    }

    .gp-subtitle {
        font-size: 14px;
    }

    .gp-section {
        padding: 24px 20px;
    }

    .gp-section-title {
        margin-bottom: 20px;
    }

    .gp-section-title h3 {
        font-size: 18px;
    }

    .gp-prices-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gp-price-card {
        padding: 16px;
        min-height: 130px;
    }

    .gp-size {
        font-size: 18px;
    }

    .gp-price-tag {
        font-size: 18px;
        padding: 10px 14px;
    }

    .gp-summary {
        flex-wrap: wrap;
    }

    .gp-summary-item {
        flex: 1 1 50%;
        border-bottom: 1px solid var(--border);
    }

    .gp-summary-item:nth-child(odd) {
        border-left: 1px solid var(--border);
    }

    .gp-summary-item:nth-child(even) {
        border-left: none;
    }
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media screen and (max-width: 480px) {
    .gp-header {
        padding: 20px 16px;
    }

    .gp-title {
        font-size: 20px;
    }

    .gp-section {
        padding: 20px 16px;
    }

    .gp-prices-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gp-price-card {
        padding: 14px;
        min-height: 120px;
        border-radius: 10px;
    }

    .gp-price-card:hover {
        transform: none;
    }

    .gp-product-info h4 {
        font-size: 13px;
    }

    .gp-size {
        font-size: 16px;
    }

    .gp-price-tag {
        font-size: 16px;
        padding: 10px 12px;
    }

    .gp-summary-item {
        flex: 1 1 100%;
        border-left: none !important;
    }
}

/* ============================================
   WordPress Compatibility
   ============================================ */
.elementor-widget-container .gp-prices-container,
.entry-content .gp-prices-container,
.post-content .gp-prices-container,
article .gp-prices-container,
.wp-block-shortcode .gp-prices-container {
    margin: 30px 0;
}

/* RTL Support */
[dir="rtl"] .gp-summary-item {
    border-left: 1px solid var(--border);
    border-right: none;
}

[dir="rtl"] .gp-summary-item:last-child {
    border-left: none;
}