/**
 * Marketing Content Access - Frontend Styles
 */

.mca-content-gate {
    max-width: 800px;
    margin: 40px auto;
    padding: 0;
}

/* Error State */
.mca-content-gate-error {
    background: #f8f9fa;
    border: 2px dashed #dc3545;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: #dc3545;
    font-size: 16px;
}

/* Locked Content */
.mca-locked-content {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mca-lock-icon {
    margin-bottom: 20px;
}

.mca-lock-icon .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #667eea;
    opacity: 0.8;
}

.mca-gate-title {
    font-size: 32px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.mca-gate-description {
    font-size: 18px;
    line-height: 1.6;
    color: #646970;
    margin-bottom: 40px;
}

.mca-gate-description p {
    margin-bottom: 15px;
}

.mca-gate-description p:last-child {
    margin-bottom: 0;
}

/* Email Form */
.mca-email-form {
    max-width: 500px;
    margin: 0 auto;
}

.mca-form-group {
    margin-bottom: 20px;
}

.mca-form-group label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 10px;
    text-align: left;
}

.mca-email-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #c3c4c7;
    border-radius: 8px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.mca-email-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mca-email-input:disabled {
    background: #f6f7f7;
    cursor: not-allowed;
}

.mca-form-actions {
    margin-top: 20px;
}

.mca-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.mca-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.mca-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.mca-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.mca-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: mca-spin 0.8s linear infinite;
}

@keyframes mca-spin {
    to { transform: rotate(360deg); }
}

.mca-form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
}

.mca-message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.mca-message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Unlocked Content */
.mca-unlocked-content {
    background: #ffffff;
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.mca-success-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    margin-bottom: 30px;
}

.mca-success-message .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #28a745;
}

.mca-success-message p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #155724;
}

.mca-content-wrapper {
    /* Container for video and documents */
}

/* Video */
.mca-video-container {
    margin-bottom: 40px;
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.mca-video-container iframe,
.mca-video-container video {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    border: none;
}

.mca-video-container p {
    margin: 0;
}

/* Responsive video sizing */
@media (max-width: 1024px) {
    .mca-video-container iframe,
    .mca-video-container video {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .mca-video-container iframe,
    .mca-video-container video {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .mca-video-container iframe,
    .mca-video-container video {
        height: 300px;
    }
}

/* Documents */
.mca-documents-message {
    margin-bottom: 20px;
}

.mca-documents-message p {
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
    margin: 0;
}

.mca-documents-list {
    display: grid;
    gap: 20px;
}

.mca-document-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f6f7f7;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mca-document-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mca-document-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.mca-document-content {
    flex: 1;
}

.mca-document-name {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.mca-document-name a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mca-document-name a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.mca-document-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #646970;
}

/* Responsive */
@media (max-width: 768px) {
    .mca-content-gate {
        margin: 20px 10px;
    }

    .mca-locked-content,
    .mca-unlocked-content {
        padding: 40px 20px;
    }

    .mca-gate-title {
        font-size: 24px;
    }

    .mca-gate-description {
        font-size: 16px;
    }

    .mca-submit-btn {
        width: 100%;
    }
}
