/* sale/style.css */

* {
    box-sizing: border-box;

    margin: 0;

    padding: 0;
}


body {
    min-height: 100vh;

    font-family: "Inter", "Segoe UI", Arial, sans-serif;

    background: #0f1117;

    color: #e6e6e6;

    line-height: 1.7;
}


/* Header */

.header-content {
    max-width: 1000px;

    margin: 50px auto 40px;

    padding: 0 20px;

    text-align: center;
}


/* Back button */

.back-button {
    display: inline-block;

    padding: 10px 18px;

    margin-bottom: 30px;

    background: #171a22;

    border: 1px solid #272c38;

    border-radius: 10px;

    color: #e6e6e6;

    text-decoration: none;

    font-weight: 600;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}


.back-button:hover {
    border-color: #3d7cff;

    background: #222735;

    transform: translateY(-2px);
}


/* Sale badge */

.sale-badge {
    display: inline-block;

    padding: 7px 16px;

    margin-bottom: 20px;

    border-radius: 999px;

    background: #2563eb;

    color: white;

    font-weight: 700;

    font-size: 0.95rem;
}


/* Header text */

.header-content h1 {
    font-size: 3rem;

    color: white;

    letter-spacing: -1px;

    margin-bottom: 15px;
}


.header-content p {
    color: #a9adb8;

    font-size: 1.1rem;
}


.sale-expiration {
    margin-top: 10px;

    color: #8b8f99 !important;

    font-size: 0.95rem !important;
}


/* Projects section */

.projects-section {
    max-width: 1100px;

    margin: 40px auto;

    padding: 30px;

    background: #171a22;

    border: 1px solid #272c38;

    border-radius: 18px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.projects-section:hover {
    border-color: #3d7cff;

    box-shadow:
        0 15px 35px rgba(0,0,0,0.25);
}


.section-header h2 {
    color: white;

    font-size: 2rem;

    margin-bottom: 10px;
}


.section-header p {
    color: #a9adb8;

    margin-bottom: 30px;
}


/* Project grid */

.project-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

    gap: 25px;
}


/* Project cards */

.project-card {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    padding: 25px;

    background: #10131a;

    border: 1px solid #272c38;

    border-radius: 15px;

    color: inherit;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.project-card:hover {
    transform: translateY(-5px);

    border-color: #3d7cff;

    box-shadow:
        0 15px 35px rgba(0,0,0,0.25);
}


/* Project content */

.project-card-content {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
}


.discount-badge {
    display: inline-block;

    padding: 5px 12px;

    margin-bottom: 12px;

    background: #2563eb;

    border-radius: 999px;

    color: white;

    font-size: 0.85rem;

    font-weight: 700;
}


.project-card h3 {
    color: white;

    font-size: 1.5rem;

    margin-bottom: 10px;
}


.project-card p {
    color: #a9adb8;

    margin-bottom: 20px;
}


/* Prices */

.project-price {
    display: flex;

    gap: 12px;

    align-items: center;
}


.original-price {
    color: #8b8f99;

    text-decoration: line-through;

    font-size: 0.95rem;
}


.discounted-price {
    color: #60a5fa;

    font-weight: 700;

    font-size: 1.1rem;
}


/* Arrow */

.project-arrow {
    color: #6ea8fe;

    font-size: 2rem;

    transition:
        transform 0.2s ease;
}


.project-card:hover .project-arrow {
    transform: translateX(6px);
}


/* Empty state */

.empty-state {
    text-align: center;

    padding: 40px;

    background: #10131a;

    border: 1px solid #272c38;

    border-radius: 15px;
}


.empty-content h2 {
    color: white;

    margin-bottom: 15px;
}


.empty-content p {
    color: #a9adb8;

    margin-bottom: 25px;
}


/* Button */

.button {
    display: inline-block;

    padding: 10px 18px;

    background: #2563eb;

    border-radius: 10px;

    color: white;

    text-decoration: none;

    font-weight: 600;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.button:hover {
    background: #1d4ed8;

    transform: translateY(-2px);
}


/* Footer */

footer {
    max-width: 1100px;

    margin: 40px auto 0;

    padding: 30px 20px;

    text-align: center;

    color: #8b8f99;
}


footer hr {
    max-width: 1100px;

    margin: 35px auto 20px;

    height: 1px;

    border: none;

    background: #292d38;
}


footer p {
    color: #8b8f99;
}


/* Animations */

.header-content,
.projects-section,
.project-card,
footer {
    animation: fadeIn 0.6s ease-out;
}


@keyframes fadeIn {

    from {
        opacity: 0;

        transform: translateY(15px);
    }


    to {
        opacity: 1;

        transform: translateY(0);
    }
}


/* Mobile */

@media(max-width:600px) {

    .header-content h1 {
        font-size: 2.2rem;
    }


    .projects-section {
        margin: 25px 15px;

        padding: 25px;
    }


    .project-card {
        flex-direction: column;

        align-items: flex-start;
    }


    .project-arrow {
        display: none;
    }

}