@import url('components.css');

:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --accent: #f59e0b;
    --text: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --border: #e5e7eb;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --radius-sm: 4px;
    --radius-lg: 12px;
}


body {
    font-family: var(--basic_font_2);
}

.container-prom {
    width: 75%;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.page-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}



@media (max-width: 768px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .container-prom {
        margin: 10px;
        width: 92%;
    }
}

@media (max-width: 480px) {
    .stats {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 18px;
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Promotions Grid - 2 колонки */
.promotions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 1000px) {
    .container-prom {
        width: 100%;
        margin: 0 auto;
    }

    .promotions-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 768px) {
    .promotions-grid {
        grid-template-columns: 1fr;
    }
}

/* Promotion Card */
.promotion-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.promotion-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-header {
    padding: 20px 20px 16px;
    position: relative;
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.card-category {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--bg-white);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    border: 1px solid var(--border);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--text);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
}

.card-content {
    padding: 0 20px 16px;
    flex-grow: 1;
}

.card-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.card-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.card-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-lighter);
    font-weight: 500;
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.detail-value.date {
    color: var(--accent);
}

.detail-value.code {
    color: var(--primary);
}

.card-footer {
    padding: 16px 20px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
}

.card-tag i {
    color: var(--secondary);
}

.card-action {
    padding: 8px 18px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
}

.card-action:hover {
    background-color: var(--primary-dark);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.empty-icon {
    font-size: 2.5rem;
    color: var(--border);
    margin-bottom: 16px;
}

.empty-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-light);
}

.empty-description {
    color: var(--text-light);
    max-width: 400px;
    margin: 0 auto;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {

    .page-title {
        font-size: 1.8rem;
    }

    .page-description {
        font-size: 1rem;
    }

    .filters {
        flex-direction: column;
        align-items: center;
    }

}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.6rem;
    }

    .card-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* Active/Ending status */
.status-active {
    color: var(--secondary);
    font-weight: 600;
}

.status-ending {
    color: var(--accent);
    font-weight: 600;
}
















.promotion-detail {
    display: grid;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .promotion-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Promotion Header */
.promotion-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 24px;
}

.promotion-badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    width: fit-content;
}

.promotion-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

.promotion-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
    line-height: 1.2;
}

/* Promotion Image */
.promotion-image-container {
    /* border: 1px solid black; */
    width: 70%;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 20px;
}

@media (max-width: 780px) {
    .promotion-image-container {
        width: 100%;
    }
}

.promotion-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.promotion-image:hover {
    transform: scale(1.02);
}

.image-overlay {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent); */
    padding: 30px;
    color: white;
}

.image-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Promotion Stats */
.promotion-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .promotion-stats {
        grid-template-columns: 1fr;
    }
}

.promotion-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--bg-light);
}

.promotion-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.promotion-stat-label {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Promotion Content */
.promotion-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.section {
    display: flex;
    flex-direction: column;

}


.section-text {
    color: var(--text-light);
    line-height: 1;
}

/* Features List */
.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.feature-text {
    color: var(--text-light);
    line-height: 1.6;
}

/* Conditions */
.conditions-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.condition-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.condition-number {
    width: 28px;
    height: 28px;
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.condition-text {
    color: var(--text-light);
    line-height: 1.6;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Action Card */
.action-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.action-card-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.action-card-code {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: var(--bg-light);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.code-text {
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 1px;
}

.copy-btn {
    margin-left: auto;
    padding: 8px 16px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.copy-btn:hover {
    background-color: var(--primary-dark);
}

.copy-btn.copied {
    background-color: var(--secondary);
}

.timer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timer-label {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

.timer-display {
    display: flex;
    gap: 8px;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.timer-value {
    width: 50px;
    height: 50px;
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

.timer-label-unit {
    font-size: 0.8rem;
    color: var(--text-light);
}

.action-btn {
    padding: 16px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
}

.action-btn:hover {
    background-color: var(--primary-dark);
}

.action-btn.secondary {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.action-btn.secondary:hover {
    background-color: var(--bg-light);
}

/* Info Card */
.info-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.95rem;
    color: var(--text-light);
}

.info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

/* Gallery Section */
.gallery-section {
    margin: 40px 0;
}

.gallery-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* Related Promotions */
.related-promotions {
    margin-bottom: 60px;
}

.related-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.related-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.related-card-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--bg-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    width: fit-content;
}

.related-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
}

.related-card-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

/* Responsive */
@media (max-width: 768px) {
    .promotion-title {
        font-size: 2rem;
    }

    .header-content {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .action-card {
        padding: 24px;
    }

}

@media (max-width: 480px) {
    .promotion-title {
        font-size: 1.8rem;
    }

    .timer-display {
        justify-content: center;
    }

    .breadcrumb-list {
        flex-wrap: wrap;
    }
}