/**
 * GiveCards type-specific create pages
 * FILE_PATH: assets/css/card_create.css
 */

.gc-create-hero {
    color: #fff;
    padding: 2rem 0 2.5rem;
    margin: 0 -15px 1.5rem;
    border-radius: 0 0 var(--gc-radius-lg, 20px) var(--gc-radius-lg, 20px);
}

.gc-create-hero-inner { position: relative; z-index: 1; }

.gc-create-back {
    display: inline-block;
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-decoration: none;
}
.gc-create-back:hover { color: #fff; }

.gc-create-hero-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: rgba(255,255,255,0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.gc-create-title {
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.gc-create-tagline { opacity: 0.92; margin: 0; max-width: 36rem; }

.gc-create-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
    align-items: start;
}

.gc-create-preview-col { position: relative; }

.gc-create-preview-sticky {
    position: sticky;
    top: 1rem;
    overflow: hidden;
}

.gc-preview-header {
    background: var(--gc-ink, #1a2332);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.5rem 1rem;
}

.gc-preview-card {
    min-height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.gc-preview-overlay {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background: rgba(0,0,0,0.35);
    text-align: center;
    color: #fff;
}

.gc-preview-greeting {
    font-family: Fraunces, Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.gc-preview-message {
    font-size: 0.9rem;
    opacity: 0.95;
    max-width: 90%;
    white-space: pre-wrap;
}

.gc-create-submit-bar {
    position: sticky;
    bottom: 0;
    background: #fff;
    border: 1px solid var(--gc-border, #e2e0d8);
    border-radius: var(--gc-radius, 12px);
    padding: 1rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    box-shadow: var(--gc-shadow-lg, 0 12px 40px rgba(26,35,50,0.1));
    z-index: 50;
    margin-bottom: 2rem;
}

.gc-theme-grid, .gc-bg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 0.75rem;
}

.gc-theme-option, .gc-bg-option {
    cursor: pointer;
    text-align: center;
    margin: 0;
    position: relative;
}

.gc-bg-option--custom .gc-bg-thumb {
    border-color: var(--gc-primary, #2d6a7a);
    box-shadow: 0 0 0 2px rgba(45, 106, 122, 0.25);
}

.gc-upload-preview {
    border: 1px solid rgba(45, 106, 122, 0.25);
    border-radius: 12px;
    background: #f7fafb;
    padding: 0.75rem;
}

.gc-upload-preview-inner {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.gc-upload-preview-img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #fff;
    box-shadow: 0 4px 14px rgba(26, 35, 50, 0.12);
    flex: 0 0 auto;
}

.gc-upload-preview-meta {
    min-width: 0;
}

@media (max-width: 575.98px) {
    .gc-upload-preview-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

.gc-privacy-confirm-modal .modal-content {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(26, 35, 50, 0.22);
}

.gc-privacy-confirm-modal .modal-title {
    font-weight: 700;
}

.gc-theme-option input, .gc-bg-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gc-theme-swatch {
    display: block;
    height: 48px;
    border-radius: 10px;
    border: 3px solid transparent;
    transition: border-color 0.2s, transform 0.2s;
}

.gc-theme-option input:checked + .gc-theme-swatch,
.gc-bg-option input:checked + .gc-bg-thumb {
    border-color: var(--gc-primary, #2d6a7a);
    transform: scale(1.03);
}

.gc-theme-label, .gc-bg-label {
    display: block;
    font-size: 0.7rem;
    margin-top: 0.35rem;
    color: var(--gc-ink-muted, #5c6b7a);
}

.gc-bg-thumb {
    display: block;
    height: 64px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    border: 3px solid transparent;
}

.gc-theme-swatch.theme-blue { background: linear-gradient(135deg, #3498db, #2980b9); }
.gc-theme-swatch.theme-red { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.gc-theme-swatch.theme-green { background: linear-gradient(135deg, #27ae60, #1e8449); }
.gc-theme-swatch.theme-purple { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.gc-theme-swatch.theme-pink { background: linear-gradient(135deg, #ff6b9d, #e84393); }
.gc-theme-swatch.theme-yellow { background: linear-gradient(135deg, #f1c40f, #f39c12); }
.gc-theme-swatch.theme-teal { background: linear-gradient(135deg, #009688, #00796b); }
.gc-theme-swatch.theme-orange { background: linear-gradient(135deg, #e67e22, #d35400); }
.gc-theme-swatch.theme-navy { background: linear-gradient(135deg, #2c3e50, #1a252f); }
.gc-theme-swatch.theme-maroon { background: linear-gradient(135deg, #800000, #5c0000); }
.gc-theme-swatch.theme-aqua { background: linear-gradient(135deg, #00bcd4, #0097a7); }
.gc-theme-swatch.theme-lime { background: linear-gradient(135deg, #cddc39, #afb42b); }

.gc-prompt-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }

.gc-prompt-btn { font-size: 0.75rem; }

@media (max-width: 991.98px) {
    .gc-create-layout { grid-template-columns: 1fr; }
    .gc-create-preview-col { order: -1; }
    .gc-create-preview-sticky { position: relative; top: 0; }
    .gc-preview-card, .gc-preview-overlay { min-height: 200px; }
}
