/**
 * Frontend CSS for ToroFilm AdBlock Notice
 * Responsive design with modern styling
 */

/* Modal Styles */
.torofilm-adblock-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.torofilm-adblock-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.torofilm-adblock-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: torofilmModalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes torofilmModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.torofilm-adblock-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px 16px 0 0;
}

.torofilm-adblock-modal-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.torofilm-adblock-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #6b7280;
    transition: all 0.2s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.torofilm-adblock-modal-close:hover {
    color: #374151;
    background: rgba(0, 0, 0, 0.05);
}

.torofilm-adblock-modal-close svg {
    width: 20px;
    height: 20px;
}

.torofilm-adblock-modal-body {
    padding: 28px;
    text-align: center;
}

.torofilm-adblock-icon {
    margin-bottom: 24px;
    color: #ef4444;
    display: flex;
    justify-content: center;
    align-items: center;
}

.torofilm-adblock-icon svg {
    width: 64px;
    height: 64px;
    stroke-width: 1.5;
}

.torofilm-adblock-modal-body p {
    margin: 0 0 28px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
}

.torofilm-adblock-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.torofilm-adblock-button {
    flex: 1;
    min-width: 140px;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    position: relative;
    overflow: hidden;
}

.torofilm-adblock-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.torofilm-adblock-button:hover::before {
    left: 100%;
}

.torofilm-adblock-button.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.torofilm-adblock-button.primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.torofilm-adblock-button.secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

.torofilm-adblock-button.secondary:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.4);
}

.torofilm-adblock-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.torofilm-adblock-info {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid #d1d5db;
}

.torofilm-adblock-info p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* Inline Notice Styles */
.torofilm-adblock-inline-notice {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.1);
}

.torofilm-adblock-inline-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.torofilm-adblock-inline-icon {
    color: #f59e0b;
    flex-shrink: 0;
}

.torofilm-adblock-inline-icon svg {
    width: 40px;
    height: 40px;
}

.torofilm-adblock-inline-text {
    flex: 1;
}

.torofilm-adblock-inline-text h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
    color: #92400e;
}

.torofilm-adblock-inline-text p {
    margin: 0;
    font-size: 14px;
    color: #92400e;
    line-height: 1.5;
}

.torofilm-adblock-inline-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.torofilm-adblock-inline-button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.torofilm-adblock-inline-button.primary {
    background: #f59e0b;
    color: white;
}

.torofilm-adblock-inline-button.primary:hover {
    background: #d97706;
    transform: translateY(-1px);
}

.torofilm-adblock-inline-button.secondary {
    background: #6b7280;
    color: white;
}

.torofilm-adblock-inline-button.secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

/* Content Protection Styles */
.torofilm-adblock-protected-content {
    position: relative;
}

.torofilm-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    color: white;
    font-size: 18px;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
}

.torofilm-content-overlay::before {
    content: "🚫 AdBlock Detected";
    display: block;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
}

.torofilm-content-overlay::after {
    content: "Please disable your ad blocker or complete the skip ad process to continue watching";
    display: block;
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.4;
}

/* Session Status Styles */
.torofilm-session-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.torofilm-session-status .session-timer {
    font-weight: 700;
    margin-left: 8px;
    color: #d1fae5;
}

/* Notification Styles */
.torofilm-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #374151;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    z-index: 10000;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.torofilm-notification-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.torofilm-notification-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.torofilm-notification-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    float: right;
    margin-left: 12px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

/* Progress Bar Styles */
.torofilm-progress-container {
    background: #f3f4f6;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
    border: 1px solid #e5e7eb;
}

.torofilm-progress-bar {
    background: #e5e7eb;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin: 12px 0;
}

.torofilm-progress-fill {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.torofilm-progress-text {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 640px) {
    .torofilm-adblock-modal-content {
        margin: 20px;
        max-width: none;
        border-radius: 12px;
    }
    
    .torofilm-adblock-modal-header {
        padding: 20px;
    }
    
    .torofilm-adblock-modal-header h3 {
        font-size: 20px;
    }
    
    .torofilm-adblock-modal-body {
        padding: 24px 20px;
    }
    
    .torofilm-adblock-buttons {
        flex-direction: column;
    }
    
    .torofilm-adblock-button {
        min-width: auto;
        width: 100%;
    }
    
    .torofilm-adblock-inline-content {
        flex-direction: column;
        text-align: center;
    }
    
    .torofilm-adblock-inline-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .torofilm-adblock-inline-button {
        width: 100%;
    }
    
    .torofilm-session-status {
        top: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
    
    .torofilm-notification {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: none;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .torofilm-adblock-modal-content {
        margin: 10px;
    }
    
    .torofilm-adblock-modal-header {
        padding: 16px;
    }
    
    .torofilm-adblock-modal-body {
        padding: 20px 16px;
    }
    
    .torofilm-adblock-icon svg {
        width: 48px;
        height: 48px;
    }
    
    .torofilm-adblock-modal-body p {
        font-size: 15px;
    }
    
    .torofilm-adblock-button {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .torofilm-adblock-modal-content {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .torofilm-adblock-modal-header {
        background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
        border-bottom-color: #374151;
    }
    
    .torofilm-adblock-modal-header h3 {
        color: #f9fafb;
    }
    
    .torofilm-adblock-modal-close {
        color: #9ca3af;
    }
    
    .torofilm-adblock-modal-close:hover {
        color: #f3f4f6;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .torofilm-adblock-modal-body p {
        color: #d1d5db;
    }
    
    .torofilm-adblock-info {
        background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
        border-color: #4b5563;
    }
    
    .torofilm-adblock-info p {
        color: #9ca3af;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .torofilm-adblock-modal-content {
        border: 2px solid #000;
    }
    
    .torofilm-adblock-button {
        border: 2px solid transparent;
    }
    
    .torofilm-adblock-button.primary {
        border-color: #000;
    }
    
    .torofilm-adblock-button.secondary {
        border-color: #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .torofilm-adblock-modal-content {
        animation: none;
    }
    
    .torofilm-session-status {
        animation: none;
    }
    
    .torofilm-notification {
        animation: none;
    }
    
    .torofilm-adblock-button {
        transition: none;
    }
    
    .torofilm-adblock-button:hover {
        transform: none;
    }
}