/*************************************/
/******** GIVE A GIFT PAGE ***********/
/*************************************/
/* Uses :root from styles.css - primary, section-spacing, font-body, shadows, etc. */

.gift-hero {
    margin-top: 0;
    padding-top: 180px;
    padding-bottom: 4rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8eef2 0%, #d5e0e8 100%);
    text-align: center;
}

.gift-hero-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.gift-hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-family: var(--font-body);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.gift-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.gift-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.gift-btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--animation-timing);
    cursor: pointer;
    border: 2px solid transparent;
}

.gift-btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.gift-btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.35);
    color: #fff;
}

.gift-btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.gift-btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Section spacing */
.gift-section {
    padding: var(--section-spacing) 24px;
}

.gift-container {
    max-width: 1100px;
    margin: 0 auto;
}

.gift-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--font-body);
}

/* Featured gift card */
.gift-featured {
    background: var(--background-color);
}

.gift-featured .gift-container {
    position: relative;
}

.gift-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.gift-featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: box-shadow var(--animation-timing);
}

.gift-featured-card:hover {
    box-shadow: var(--shadow-lg);
}

.gift-featured-media {
    min-height: 280px;
    background: linear-gradient(145deg, #f0f4f8 0%, #e2e8f0 100%);
}

.gift-featured-placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 0.5rem;
}

.gift-featured-placeholder i {
    font-size: 3rem;
    opacity: 0.6;
}

.gift-featured-content {
    padding: 2rem;
}

.gift-featured-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.gift-featured-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.gift-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.gift-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.gift-delivery {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.gift-privacy {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.gift-privacy i {
    color: var(--primary-color);
    margin-top: 0.2rem;
}

/* Order form */
.gift-form-section {
    background: #fff;
}

.gift-form-box {
    max-width: 600px;
    margin: 0 auto;
    background: var(--background-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.gift-form .gift-form-row {
    margin-bottom: 1.25rem;
}

.gift-form label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.gift-form .required {
    color: var(--primary-color);
}

.gift-form input,
.gift-form select,
.gift-form textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: var(--font-body);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    transition: border-color var(--animation-timing), box-shadow var(--animation-timing);
}

.gift-form input:focus,
.gift-form select:focus,
.gift-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

.gift-form input::placeholder,
.gift-form textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.gift-form textarea {
    resize: vertical;
    min-height: 100px;
}

.gift-form-error {
    display: block;
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-top: 0.35rem;
}

.gift-btn-submit {
    width: 100%;
    margin-top: 0.5rem;
    padding: 16px;
    font-size: 1.05rem;
}

.gift-form-success {
    text-align: center;
    padding: 2rem;
}

.gift-form-success i {
    font-size: 3rem;
    color: #22c55e;
    margin-bottom: 1rem;
}

.gift-form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.gift-form-success p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Tree gift section */
.gift-tree {
    background: linear-gradient(180deg, #f8f9fa 0%, #e8eef2 100%);
}

.gift-tree-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: box-shadow var(--animation-timing);
}

.gift-tree-card:hover {
    box-shadow: var(--shadow-lg);
}

.gift-tree-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.15) 0%, rgba(230, 57, 70, 0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-tree-icon i {
    font-size: 2.25rem;
    color: var(--primary-color);
}

.gift-tree-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.gift-tree-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.gift-tree-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.gift-tree-feature i {
    font-size: 1.1rem;
}

/* Symbolic gifts grid */
.gift-symbolic {
    background: #fff;
}

.gift-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gift-card {
    background: var(--background-color);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all var(--animation-timing);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.gift-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(230, 57, 70, 0.2);
}

.gift-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(230, 57, 70, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.gift-card-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.gift-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.gift-card-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.gift-card-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.gift-card .gift-btn {
    margin-top: auto;
}

/* Impact section */
.gift-impact {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.08) 0%, rgba(230, 57, 70, 0.04) 100%);
}

.gift-impact-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.gift-impact-inner i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.gift-impact-inner h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.gift-impact-inner p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
    .gift-hero {
        padding-top: 160px;
        padding-bottom: 3rem;
    }

    .gift-featured-card {
        grid-template-columns: 1fr;
    }

    .gift-featured-media {
        min-height: 200px;
    }

    .gift-featured-placeholder {
        min-height: 200px;
    }

    .gift-featured-content {
        padding: 1.5rem;
    }

    .gift-tree-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .gift-tree-icon {
        margin: 0 auto;
    }

    .gift-form-box {
        padding: 1.5rem;
    }

    .gift-cards {
        grid-template-columns: 1fr;
    }
}

/* Dark mode overrides (if body.dark-mode is set by app.js) */
body.dark-mode .gift-hero {
    background: linear-gradient(135deg, var(--card-background) 0%, var(--primary-background) 100%);
}

body.dark-mode .gift-hero-title,
body.dark-mode .gift-featured-content h2,
body.dark-mode .gift-section-title,
body.dark-mode .gift-tree-content h2,
body.dark-mode .gift-card h3,
body.dark-mode .gift-impact-inner h3 {
    color: var(--text-color);
}

body.dark-mode .gift-featured-card,
body.dark-mode .gift-form-box,
body.dark-mode .gift-tree-card,
body.dark-mode .gift-card {
    background: var(--card-background);
    border-color: var(--border-color);
}

body.dark-mode .gift-featured-media {
    background: var(--primary-background);
}

body.dark-mode .gift-form input,
body.dark-mode .gift-form select,
body.dark-mode .gift-form textarea {
    background: var(--input-background);
    border-color: var(--border-color);
    color: var(--text-color);
}
