/* ===========================
   Unique Page Elements
=========================== */

/* Advertise Page */
.discount-box {
    background-color: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 0.25rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.design-help {
    background-color: #f4f4f4;
    border-radius: 0.25rem;
    padding: 1.5rem;
}

.contact-prompt {
    margin-top: 1rem;
    font-size: 1.2rem;
}

/* Footer Customizations */
.site-footer {
    background-color: #f5f5f5;
    padding: 1.5rem 0;
    margin-top: 2.5rem;
    text-align: center;
    border-top: 1px solid #ddd;
}

    .site-footer p {
        margin: 0.25rem 0;
        font-size: 0.9rem;
        color: #333;
    }

/* Advertise Page Table */
.rates-table {
    max-width: 600px;
    margin: 1.25rem auto;
}

/* ===========================
   Login Page
=========================== */

/* Compound selector gives higher specificity than Bootstrap's single .container
   class, ensuring this max-width always wins at every responsive breakpoint. */
.container.login-container {
    max-width: 480px;
}

/* ===========================
   Subscribe Page
=========================== */

.subscribe-card {
    cursor: pointer;
}

/* ===========================
   Store / Shop Pages
=========================== */

.store-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .store-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12) !important;
    }

    .store-card .card-img-top {
        object-fit: cover;
        height: 220px;
    }

/* ===========================
   Admin - Homepage Editor
=========================== */

.admin-edit-container {
    max-width: 800px;
}

.section-header {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0.5rem;
    font-weight: 600;
}

/* Image Management */
.image-preview-wrapper {
    margin-bottom: 1rem;
}

    .image-preview-wrapper p {
        font-size: 0.875rem;
        color: #6c757d;
    }

.img-preview-thumbnail {
    max-width: 300px;
    height: auto;
    display: block;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
}

/* Form Styling */
.form-group-custom {
    margin-bottom: 1.5rem;
}

.validation-error {
    font-size: 0.875rem;
}

/* ===========================
   Admin - Advertising Pricing
=========================== */

/* Constrains the rates table and subscriber placeholder to a readable width */
.admin-panel-section {
    max-width: 560px;
}

/* Keeps the rate number input compact within its table cell */
.admin-rate-input-group {
    max-width: 140px;
}

/* ===========================
   Admin - Add Product Wizard
=========================== */

@keyframes wizardReveal {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-reveal {
    animation: wizardReveal 0.25s ease-out forwards;
}
