/**
 * Enhanced Dashboard Styles for My Account Page
 * Includes: Reorder, Popular Products, Last Chance, News, Reseller, Specials
 */

/* ===========================
   Dashboard Container
   =========================== */

.ga-dashboard-enhanced {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===========================
   Section Styling
   =========================== */

.ga-dashboard-section {
    background: rgba(255, 255, 255, 0.98);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ga-section-title {
    color: #003c71;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #003c71;
}

.ga-section-description {
    color: #666;
    font-size: 14px;
    margin: 0 0 20px 0;
}

/* ===========================
   Reorder Section
   =========================== */

.ga-reorder-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ga-reorder-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.ga-reorder-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.ga-reorder-info {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.ga-order-number {
    font-weight: 700;
    color: #003c71;
    font-size: 16px;
}

.ga-order-date,
.ga-order-items {
    color: #666;
    font-size: 14px;
}

.ga-order-total {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.ga-reorder-actions {
    display: flex;
    gap: 10px;
}

.ga-reorder-button,
.ga-view-order {
    padding: 10px 20px !important;
    font-size: 14px !important;
    white-space: nowrap;
}

.ga-reorder-button {
    background: #003c71 !important;
    color: white !important;
}

.ga-view-order {
    background: #f5f5f5 !important;
    color: #003c71 !important;
}

.ga-no-orders {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

.ga-reorder-pagination {
    text-align: center;
    margin-top: 20px;
}

/* ===========================
   Product Carousel Styling
   =========================== */

.ga-product-carousel {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.ga-carousel-container {
    overflow: hidden;
}

.ga-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.ga-carousel-item {
    flex: 0 0 calc((100% - 40px) / 6);
    min-width: 250px;
}

.ga-product-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
}

.ga-product-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #003c71;
}

.ga-product-card-link {
    display: block;
    text-decoration: none;
    flex: 1;
}

.ga-product-card-link:hover .ga-product-image img {
    transform: scale(1.05);
}

.ga-product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f9f9f9;
}

.ga-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ga-product-card-link:hover .ga-product-image img {
    transform: scale(1.05);
}

.ga-product-info {
    padding: 15px;
}

.ga-view-product-button {
    display: block !important;
    width: calc(100% - 30px) !important;
    margin: 0 15px 15px 15px !important;
    text-align: center !important;
    background: #003c71 !important;
    color: white !important;
    padding: 12px 20px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

.ga-view-product-button:hover {
    background: #0f2f4f !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(22, 65, 112, 0.3) !important;
}

.ga-product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
    min-height: 44px;
}

.ga-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #003c71;
}

/* Stock Badge */
.ga-stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Carousel Navigation */
.ga-carousel-prev,
.ga-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #003c71;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ga-carousel-prev {
    left: 0;
}

.ga-carousel-next {
    right: 0;
}

.ga-carousel-prev:hover,
.ga-carousel-next:hover {
    background: #0f2f4f;
    transform: translateY(-50%) scale(1.1);
}

.ga-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.ga-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ga-carousel-dot.active {
    background: #003c71;
    width: 24px;
    border-radius: 5px;
}

/* ===========================
   News Section
   =========================== */

.ga-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.ga-news-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ga-news-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.ga-news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f9f9f9;
}

.ga-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ga-news-item:hover .ga-news-image img {
    transform: scale(1.05);
}

.ga-news-content {
    padding: 20px;
}

.ga-news-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.ga-news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ga-news-title a:hover {
    color: #003c71;
}

.ga-news-meta {
    color: #999;
    font-size: 13px;
    margin-bottom: 10px;
}

.ga-news-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.ga-read-more {
    color: #003c71;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.ga-read-more:hover {
    color: #0f2f4f;
}

.ga-news-view-all {
    text-align: center;
}

/* ===========================
   Placeholder Sections
   =========================== */

.ga-reseller-placeholder,
.ga-specials-placeholder {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.ga-reseller-icon,
.ga-specials-icon {
    color: #003c71;
    margin-bottom: 20px;
}

.ga-reseller-icon svg,
.ga-specials-icon svg {
    display: inline-block;
}

.ga-reseller-placeholder h3,
.ga-specials-placeholder h3 {
    color: #003c71;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.ga-reseller-placeholder p,
.ga-specials-placeholder p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 25px auto;
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 1024px) {
    .ga-carousel-item {
        flex: 0 0 calc((100% - 40px) / 6);
    }

    .ga-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ga-dashboard-section {
        padding: 20px;
    }

    .ga-section-title {
        font-size: 20px;
    }

    .ga-reorder-item {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .ga-reorder-actions {
        width: 100%;
        flex-direction: column;
    }

    .ga-reorder-button,
    .ga-view-order {
        width: 100%;
        text-align: center;
    }

    .ga-product-carousel {
        padding: 0 45px;
    }

    .ga-carousel-item {
        flex: 0 0 calc((100% - 40px) / 1);
        max-width: 100px;
    }

    .ga-carousel-prev,
    .ga-carousel-next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .ga-news-grid {
        grid-template-columns: 1fr;
    }

    .ga-reseller-placeholder,
    .ga-specials-placeholder {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .ga-order-info {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .ga-product-carousel {
        padding: 0 40px;
    }

    .ga-carousel-prev,
    .ga-carousel-next {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}
