/**
 * Frontend styles for Sales Page Expiration
 */

/* Expired Page Container */
.spe-expired-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f8f9fa;
}

.spe-expired-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.spe-expired-content {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

/* Typography */
.spe-expired-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.spe-expired-message {
    font-size: 1.2em;
    color: #5a6c7d;
    line-height: 1.6;
    margin: 0 0 30px 0;
}

.spe-expired-message p {
    margin: 0 0 15px 0;
}

.spe-expired-message p:last-child {
    margin-bottom: 0;
}

/* Actions */
.spe-expired-actions {
    margin-top: 30px;
}

.spe-home-button {
    display: inline-block;
    background: #3498db;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: 2px solid #3498db;
}

.spe-home-button:hover {
    background: #2980b9;
    border-color: #2980b9;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.spe-home-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

/* Icon Support (if icons are added in the future) */
.spe-expired-icon {
    font-size: 4em;
    color: #e74c3c;
    margin-bottom: 20px;
    display: block;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .spe-expired-page {
        padding: 20px 15px;
        min-height: 50vh;
    }
    
    .spe-expired-content {
        padding: 30px 20px;
    }
    
    .spe-expired-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    
    .spe-expired-message {
        font-size: 1.1em;
        margin-bottom: 25px;
    }
    
    .spe-home-button {
        padding: 10px 20px;
        font-size: 1em;
    }
}

@media screen and (max-width: 480px) {
    .spe-expired-content {
        padding: 25px 15px;
    }
    
    .spe-expired-title {
        font-size: 1.8em;
    }
    
    .spe-expired-message {
        font-size: 1em;
    }
}

/* Theme Integration */
.spe-expired-page .entry-header,
.spe-expired-page .entry-content,
.spe-expired-page .entry-footer {
    display: none;
}

/* Custom Message Styling */
.spe-expired-message strong {
    color: #2c3e50;
    font-weight: 700;
}

.spe-expired-message em {
    font-style: italic;
    color: #7f8c8d;
}

.spe-expired-message a {
    color: #3498db;
    text-decoration: underline;
}

.spe-expired-message a:hover {
    color: #2980b9;
    text-decoration: none;
}

/* Alternative Button Styles */
.spe-home-button.secondary {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.spe-home-button.secondary:hover {
    background: #3498db;
    color: #ffffff;
}

/* Loading State (for future AJAX functionality) */
.spe-loading {
    opacity: 0.6;
    pointer-events: none;
}

.spe-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spe-spin 1s linear infinite;
}

@keyframes spe-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .spe-expired-page {
        background: white;
        color: black;
    }
    
    .spe-expired-content {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .spe-home-button {
        display: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .spe-expired-content {
        border: 2px solid #000;
    }
    
    .spe-expired-title {
        color: #000;
    }
    
    .spe-expired-message {
        color: #000;
    }
    
    .spe-home-button {
        background: #000;
        border-color: #000;
        color: #fff;
    }
    
    .spe-home-button:hover {
        background: #333;
        border-color: #333;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .spe-home-button {
        transition: none;
    }
    
    .spe-home-button:hover {
        transform: none;
    }
    
    .spe-loading::after {
        animation: none;
    }
}
