/* ==========================================================================
   BatesStamp.com — Site-Specific Stylesheet
   Imports shared brand tokens, layout, and components from brand.css
   ========================================================================== */

/* ==========================================================================
   Utility classes
   ========================================================================== */

.hidden { display: none; }

.option-panel { margin-top: 15px; }

/* ==========================================================================
   Opacity control (stamp settings)
   ========================================================================== */

.opacity-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.opacity-control input[type="range"] {
    flex: 1;
    accent-color: var(--navy-mid);
}

.opacity-control span {
    min-width: 45px;
    font-weight: 600;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   File upload drop zone
   ========================================================================== */

.file-drop-zone {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--white);
    position: relative;
}

.file-drop-zone:hover {
    border-color: var(--navy-mid);
    background: rgba(44, 82, 130, 0.03);
}

.file-drop-zone.drag-over {
    border-color: var(--gold);
    background: var(--gold-muted);
    border-style: solid;
}

.file-drop-zone.has-file {
    border-color: var(--success);
    border-style: solid;
    background: var(--success-bg);
}

.file-drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.drop-zone-icon {
    margin-bottom: 10px;
    color: var(--gray-400);
    transition: color var(--transition);
    line-height: 1;
    display: flex;
    justify-content: center;
}

.file-drop-zone:hover .drop-zone-icon {
    color: var(--navy-mid);
}

.file-drop-zone.has-file .drop-zone-icon {
    color: var(--success);
}

.drop-zone-text {
    font-size: 0.95em;
    color: var(--gray-500);
    margin-bottom: 4px;
    font-weight: 500;
}

.drop-zone-hint {
    font-size: 0.82em;
    color: var(--gray-400);
}

.drop-zone-filename {
    font-size: 0.95em;
    color: var(--success);
    font-weight: 600;
    margin-top: 4px;
}

/* ==========================================================================
   Grid layouts
   ========================================================================== */

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.three-column {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

/* ==========================================================================
   Checkbox group
   ========================================================================== */

.checkbox-group {
    display: flex;
    align-items: center;
    margin-top: 10px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    margin-right: 10px;
    cursor: pointer;
    position: relative;
    transition: all var(--transition);
    flex-shrink: 0;
}

.checkbox-group input[type="checkbox"]:checked {
    background: var(--navy-mid);
    border-color: var(--navy-mid);
}

.checkbox-group input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-group input[type="checkbox"]:focus-visible {
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.2);
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-heading);
}

/* ==========================================================================
   Sections and control groups
   ========================================================================== */

.section {
    margin-bottom: 24px;
    padding: 24px;
    background: var(--cream);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: border-color var(--transition);
}

.section:hover {
    border-color: var(--gray-300);
}

.section-title {
    font-family: var(--font-body);
    font-size: 1em;
    color: var(--navy);
    margin-bottom: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.control-group {
    margin-bottom: 18px;
}

.control-group:last-child {
    margin-bottom: 0;
}

.info-text {
    font-size: 0.82em;
    color: var(--gray-400);
    margin-top: 6px;
    line-height: 1.5;
}

/* ==========================================================================
   Button
   ========================================================================== */

.button {
    background: var(--navy);
    color: white;
    padding: 16px 40px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-body);
    width: 100%;
    transition: all var(--transition);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.button:hover {
    background: var(--navy-mid);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(30, 58, 95, 0.3);
}

.button:hover::before {
    transform: scaleX(1);
}

.button:active {
    transform: translateY(0);
}

.button:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button:disabled::before {
    display: none;
}

/* ==========================================================================
   Status messages
   ========================================================================== */

.status {
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    min-height: 52px;
    text-align: center;
    font-size: 0.95em;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status.status-error {
    background: var(--error-bg);
    border-color: #fecaca;
}

.status.status-success {
    background: var(--success-bg);
    border-color: #bbf7d0;
}

.status.status-warning {
    background: var(--warning-bg);
    border-color: #fde68a;
}

.status.status-processing {
    background: #eef6fd;
    border-color: #bfdbfe;
}

.error {
    color: var(--error);
    font-weight: 500;
}

.success {
    color: var(--success);
    font-weight: 600;
}

.warning {
    color: var(--warning);
    font-weight: 500;
}

/* Loading spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2.5px solid var(--gray-300);
    border-top-color: var(--navy-mid);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 10px;
}

.status-icon {
    margin-right: 8px;
    font-size: 1.1em;
    vertical-align: middle;
}

/* ==========================================================================
   SEO content section (index page)
   ========================================================================== */

.seo-content {
    background: var(--cream);
    padding: 48px 36px;
    border-radius: var(--radius-md);
    margin-top: 48px;
    line-height: 1.8;
    border: 1px solid var(--gray-200);
}

.seo-content h2 {
    font-family: var(--font-display);
    color: var(--navy);
    margin-bottom: 8px;
    font-size: 2rem;
    text-align: center;
    font-weight: 700;
}

.seo-content h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--gold);
    margin: 16px auto 24px;
    border-radius: 2px;
}

.seo-content-inner h3 {
    font-family: var(--font-display);
    color: var(--navy);
    margin-top: 36px;
    margin-bottom: 14px;
    font-size: 1.45rem;
    font-weight: 600;
}

.seo-content-inner p {
    margin-bottom: 16px;
    color: var(--text-body);
}

.seo-content-inner ul {
    margin-left: 24px;
    margin-bottom: 20px;
    color: var(--gray-600);
}

.seo-content-inner li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.feature-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 28px 0;
}

.feature-highlight-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.feature-highlight-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-sm);
}

.feature-highlight-card h4 {
    color: var(--navy);
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 700;
}

.feature-highlight-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ==========================================================================
   Responsive (site-specific)
   ========================================================================== */

@media (max-width: 768px) {
    .two-column,
    .three-column {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 20px 16px;
    }

    .seo-content {
        padding: 32px 20px;
    }

    .feature-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 0.9em;
    }
}
