/* Import Graphik Font (using system fallbacks if not available) */
/* Note: Graphik is a premium font. Using closest web-safe alternatives */

/* Minimal Squarespace-Inspired Password Gate */

/* Reset for standalone pages */
.scp-standalone-page {
    margin: 0;
    padding: 0;
}

.scp-password-gate.scp-squarespace-style {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Graphik', 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

.scp-gate-container {
    width: 100%;
    max-width: 530px;
    margin: 0 auto;
}

/* Elegant Exit Button */
.scp-exit-button {
    position: fixed;
    top: 40px;
    right: 40px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    background: transparent;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    text-decoration: none;
}

.scp-exit-button:hover {
    color: #1A202C;
    background: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

.scp-exit-button svg {
    width: 24px;
    height: 24px;
}

.scp-gate-content {
    text-align: center;
}

/* Typography - Graphik Style */
.scp-gate-title {
    font-size: 84px;
    font-weight: 700;
    color: #1A202C;
    margin: 0 0 24px;
    line-height: 0.95;
    font-style: normal;
    letter-spacing: -0.03em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Graphik', 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

.scp-gate-description {
    font-size: 16px;
    color: #4A5568;
    margin: 0 0 48px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Error Message - Minimal */
.scp-error-message {
    background: #000000;
    color: #ffffff;
    padding: 12px 20px;
    margin-bottom: 30px;
    font-size: 13px;
    line-height: 1.6;
    letter-spacing: 0.03em;
    text-align: center;
}

/* Form */
.scp-password-form {
    margin-bottom: 0;
}

.scp-form-group {
    margin-bottom: 15px;
}

.scp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Input - Clean and Minimal */
.scp-password-input {
    width: 100%;
    padding: 18px 24px;
    font-size: 13px;
    border: none;
    background: #F7FAFC;
    color: #2D3748;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
    letter-spacing: 0.05em;
    text-align: center;
    font-weight: 400;
    margin-bottom: 32px;
}

.scp-password-input::placeholder {
    color: #A0AEC0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 11px;
}

.scp-password-input:focus {
    background: #EDF2F7;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* Submit Button - Full Width */
.scp-submit-button {
    width: 100%;
    max-width: 100%;
    padding: 18px 32px;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    background: #2D3748;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.25s ease;
    letter-spacing: 0.15em;
    font-family: inherit;
    text-align: center;
    margin: 0 auto;
    text-transform: uppercase;
}

.scp-submit-button:hover {
    background: #1A202C;
}

.scp-button-text {
    font-size: 11px;
    font-weight: 600;
}

.scp-button-arrow {
    font-size: 16px;
    font-weight: 400;
    transition: transform 0.25s ease;
    display: inline-block;
}

.scp-submit-button:hover .scp-button-arrow {
    transform: translateX(4px);
}

/* Divider - Subtle */
.scp-divider {
    margin: 30px 0 25px;
    text-align: center;
    position: relative;
}

.scp-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e0e0e0;
}

.scp-divider span {
    position: relative;
    display: inline-block;
    background: #ffffff;
    padding: 0 15px;
    font-size: 11px;
    color: #999999;
    letter-spacing: 0.1em;
    text-transform: lowercase;
}

/* Request Button - Text Link Style */
.scp-request-button {
    background: none;
    border: none;
    padding: 0;
    font-size: 11px;
    font-weight: 500;
    color: #000000;
    cursor: pointer;
    transition: opacity 0.25s ease;
    letter-spacing: 0.15em;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}

.scp-request-button:hover {
    opacity: 0.6;
}

.scp-request-button.hidden {
    display: none;
}

/* Email Request Form */
.scp-request-form {
    margin-top: 0;
    animation: slideDown 0.3s ease;
}

.scp-request-description {
    font-size: 12px;
    color: #666666;
    margin: 0 0 20px;
    letter-spacing: 0.02em;
}

.scp-email-request-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.scp-email-input {
    width: 100%;
    padding: 18px 24px;
    font-size: 13px;
    border: none;
    background: #F7FAFC;
    color: #2D3748;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 16px;
}

.scp-email-input::placeholder {
    color: #A0AEC0;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 11px;
}

.scp-email-input:focus {
    background: #EDF2F7;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

/* Email Submit Button - Full Width */
.scp-email-submit {
    width: 100%;
    max-width: 100%;
    padding: 18px 32px;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    background: #2D3748;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.15em;
    font-family: inherit;
    text-align: center;
    margin: 0 auto;
    display: block;
    text-transform: uppercase;
}

.scp-email-submit:hover {
    background: #1A202C;
}

.scp-request-success {
    background: #f5f5f5;
    padding: 20px;
    margin-top: 15px;
    border: 1px solid #e0e0e0;
}

.scp-request-success p {
    margin: 0;
    font-size: 12px;
    color: #000000;
    letter-spacing: 0.02em;
}

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

/* Loading State */
.scp-loading .scp-submit-button,
.scp-loading .scp-email-submit {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 640px) {
    .scp-gate-title {
        font-size: 56px;
    }
    
    .scp-gate-description {
        font-size: 15px;
    }
    
    .scp-exit-button {
        top: 24px;
        right: 24px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .scp-password-gate.scp-squarespace-style {
        padding: 30px 20px;
    }
    
    .scp-gate-title {
        font-size: 42px;
    }
    
    .scp-exit-button {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    .scp-exit-button svg {
        width: 20px;
        height: 20px;
    }
}
    
    .scp-password-input,
    .scp-email-input,
    .scp-submit-button,
    .scp-email-submit,
    .scp-request-button {
        font-size: 10px;
    }
}

/* Theme Integration Styles */
body.scp-standalone-page .scp-password-gate.scp-squarespace-style {
    /* When not using theme, fill the page */
    min-height: 100vh;
}

/* When using theme styles, adjust container */
.scp-password-gate.scp-squarespace-style {
    padding: 80px 20px;
}

/* Remove background when using theme */
body:not(.scp-standalone-page) .scp-password-gate.scp-squarespace-style {
    background: transparent;
    min-height: 60vh;
}
