/* Download Gate Styles */
.download-gate-locked,
.download-gate-unlocked {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.download-gate h3 {
    margin-top: 0;
    font-size: 28px;
    color: #333;
    text-align: center;
}

.download-gate p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.download-code-form,
.subscriber-check-form,
.download-signup-form {
    margin-bottom: 20px;
}

.download-gate-field {
    margin-bottom: 15px;
}

.download-gate-field-inline {
    display: flex;
    gap: 10px;
}

.download-gate-field-inline input {
    flex: 1;
}

.download-gate-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.download-gate-input:focus {
    outline: none;
    border-color: #d97a2e;
}

.download-gate-btn {
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: #d97a2e;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.download-gate-field-inline .download-gate-btn {
    width: auto;
}

.download-gate-btn:hover {
    background: #c46a25;
}

.download-gate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.download-gate-message,
.subscriber-check-message,
.download-signup-message {
    padding: 12px;
    border-radius: 4px;
    margin-top: 15px;
    text-align: center;
}

.download-gate-message.success,
.subscriber-check-message.success,
.download-signup-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.download-gate-message.error,
.subscriber-check-message.error,
.download-signup-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.download-gate-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

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

.download-gate-divider span {
    position: relative;
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 14px;
}

.download-subscriber-check,
.download-gate-signup {
    text-align: center;
}

.download-subscriber-check p,
.download-gate-signup p {
    margin-bottom: 15px;
}

.subscriber-check-toggle,
.subscriber-login-toggle,
.download-signup-toggle {
    color: #d97a2e;
    text-decoration: none;
    font-weight: 600;
}

.subscriber-check-toggle:hover,
.subscriber-login-toggle:hover,
.download-signup-toggle:hover {
    text-decoration: underline;
}

/* Download Links (unlocked state) */
.download-gate-unlocked h3 {
    text-align: center;
    margin-bottom: 10px;
}

.download-gate-unlocked > p {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.download-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.download-btn {
    display: block;
    padding: 18px 24px;
    background: linear-gradient(135deg, #65c2de 0%, #4fa8c5 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: white;
}

.download-gate-extra-content {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Responsive */
@media (max-width: 600px) {
    .download-gate-locked,
    .download-gate-unlocked {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .download-gate h3 {
        font-size: 24px;
    }
    
    .download-gate-field-inline {
        flex-direction: column;
    }
    
    .download-gate-field-inline .download-gate-btn {
        width: 100%;
    }
}
