/* Webcast Manager - Frontend Styles */

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Form Styles */
.wcm-form {
    max-width: 1000px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.wcm-form-inner {
    background: #fff;
    padding: 50px 50px;
    border-radius: 12px;
}

.wcm-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.wcm-form-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 30px;
    line-height: 1.4;
}

.wcm-form-header h2 a {
    text-decoration: underline;
    color: #1a1a1a;
}

.wcm-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.wcm-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.wcm-step-circle.active {
    background: #4a4a4a;
    color: #fff;
}

.wcm-step-line {
    width: 80px;
    height: 3px;
    background: #e0e0e0;
    margin: 0 10px;
}

.wcm-step-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
}

.wcm-form-step {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.wcm-form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wcm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.wcm-form-row.full-width {
    grid-template-columns: 1fr;
}

.wcm-form-field {
    margin-bottom: 0;
}

.wcm-field-text label, .wcm-field-email label, .wcm-field-tel label, .wcm-field-select label {
    display: none;
}

.wcm-required {
    color: #e74c3c;
    margin-left: 3px;
}

.wcm-form-field input[type="text"],
.wcm-form-field input[type="email"],
.wcm-form-field input[type="tel"],
.wcm-form-field input[type="url"],
.wcm-form-field textarea {
    width: 100%;
    padding: 22px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    transition: all 0.3s;
    background: #fff;
}

.wcm-form-field select {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    color: #a49a9a;
    transition: all 0.3s;
    background: #fff;
}

.wcm-form-field input::placeholder,
.wcm-form-field select::placeholder,
.wcm-form-field textarea::placeholder {
    color: #b0b0b0;
    font-family: 'Inter', sans-serif;
}

.wcm-form-field input:focus,
.wcm-form-field select:focus,
.wcm-form-field textarea:focus {
    outline: none;
    border-color: #4a4a4a;
    box-shadow: 0 0 0 3px rgba(74, 74, 74, 0.1);
}

.wcm-form-field input.error,
.wcm-form-field select.error,
.wcm-form-field textarea.error {
    border-color: #e74c3c;
    background-color: #fff5f5;
}

.wcm-form-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%234a4a4a' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 45px;
    cursor: pointer;
}

.wcm-form-field select option {
    padding: 10px;
    color: #1a1a1a;
}

.wcm-form-field textarea {
    min-height: 100px;
    resize: vertical;
}

.wcm-checkbox-label,
.wcm-radio-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin: 20px 0;
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.6;
    padding: 5px 0;
}

.wcm-checkbox-label input,
.wcm-radio-label input {
    margin-right: 12px;
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.wcm-legal-link {
    color: #1a1a1a;
    text-decoration: underline;
    font-weight: 500;
}

.wcm-field-checkbox {
    margin-top: 10px;
    margin-bottom: 10px;
}

.wcm-field-radio .wcm-radio-label {
    margin: 10px 0;
}

.wcm-checkbox-text {
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.6;
    padding: 10px 0;
}

.wcm-checkbox-text a {
    color: #1a1a1a;
    text-decoration: underline;
    font-weight: 500;
}

.wcm-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    justify-content: center;
}

.wcm-btn {
    padding: 16px 50px;
    background: #2d2d2d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 200px;
}

.wcm-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.wcm-btn-back {
    background: #f5f5f5;
    color: #2d2d2d;
    border: 2px solid #e0e0e0;
}

.wcm-btn-back:hover {
    background: #e8e8e8;
    border-color: #d0d0d0;
}

.wcm-form-message {
    margin-top: 20px;
    padding: 30px;
    border-radius: 8px;
    display: none;
    text-align: center;
}

.wcm-form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wcm-form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wcm-form-message h3 {
    margin: 15px 0 10px;
    color: #155724;
}

.wcm-form-message p {
    margin: 10px 0;
    line-height: 1.6;
}

.wcm-success-icon {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    font-size: 36px;
    font-weight: bold;
    margin: 0 auto;
}

.wcm-form-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 8px;
}

.wcm-popup-content {
    position: relative;
}

.wcm-popup-content .wcm-form-loader {
    position: absolute;
    border-radius: 8px;
}

.wcm-spinner {
    font-size: 48px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    letter-spacing: 8px;
    color: #e74c3c;
    text-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
    position: relative;
}

.wcm-spinner::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.2) 100%);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: -1;
}

.wcm-spinner-letter {
    display: inline-block;
    opacity: 0;
    animation: wcm-letter-appear 1.5s ease-in-out infinite;
}

.wcm-spinner-letter:nth-child(1) { animation-delay: 0s; }
.wcm-spinner-letter:nth-child(2) { animation-delay: 0.2s; }
.wcm-spinner-letter:nth-child(3) { animation-delay: 0.4s; }

@keyframes wcm-letter-appear {
    0%, 100% {
        opacity: 0;
        transform: translateY(10px);
    }
    20%, 80% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Popup Styles */
.wcm-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wcm-popup-content {
    background: #fff;
    border-radius: 8px;
    width: 85%;
    max-height: 100vh;
    overflow-y: auto;
    position: relative;
}

.wcm-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.wcm-popup-close:hover {
    color: #000;
}

.wcm-popup-body {
    padding: 20px;
}

/* Archive & List Styles */
.wcm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.wcm-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.wcm-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.wcm-item-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.wcm-item-content {
    padding: 20px;
}

.wcm-item-title {
    margin: 0 0 10px;
    font-size: 20px;
}

.wcm-item-title a {
    color: #333;
    text-decoration: none;
}

.wcm-item-title a:hover {
    color: #0073aa;
}

.wcm-item-categories {
    margin-bottom: 15px;
}

.wcm-category {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    color: #666;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.wcm-category:hover {
    background: #e0e0e0;
}

.wcm-item-excerpt {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.wcm-item-actions {
    margin-top: 15px;
}

.wcm-popup-trigger {
    display: inline-block;
    padding: 16px 40px;
    background: #2d2d2d;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
}

.wcm-popup-trigger:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    color: #fff;
}

/* Video Player Styles */
.wcm-video-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.wcm-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.wcm-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.wcm-access-denied {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    margin: 40px auto;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.wcm-access-denied h2 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.wcm-access-denied p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Single Page Styles */
.wcm-single .wcm-featured-image {
    margin-bottom: 30px;
}

.wcm-single .wcm-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.wcm-form-section {
    margin-top: 50px;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
}

.wcm-form-section h2 {
    margin-top: 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .wcm-grid {
        grid-template-columns: 1fr;
    }
    
    .wcm-form-inner {
        padding: 30px 20px;
    }
    
    .wcm-form-row {
        grid-template-columns: 1fr;
    }
    
    .wcm-form-actions {
        flex-direction: column;
    }
    
    .wcm-btn {
        width: 100%;
        min-width: auto;
    }
    
    .wcm-form-header h2 {
        font-size: 20px;
    }
}
