/**
 * Video Rental System - Frontend Styles
 *
 * @package VideoRentalSystem
 */

/* ==========================================
   Video Player Page Styles
   ========================================== */

.vrs-video-player-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.vrs-video-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.vrs-video-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e0e0e0;
}

.vrs-video-title {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.vrs-rental-info-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.vrs-rental-status,
.vrs-rental-expires {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 4px;
    background: #f5f5f5;
}

.vrs-status-active {
    color: #27ae60;
    font-weight: 600;
}

.vrs-status-expiring {
    color: #f39c12;
    font-weight: 600;
}

.vrs-status-expiring-soon,
.vrs-status-last-day {
    color: #e74c3c;
    font-weight: 600;
}

.vrs-player-wrapper {
    position: relative;
    background: #000;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.vrs-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    outline: none;
}

.vrs-video-description {
    padding: 30px;
    border-top: 1px solid #e0e0e0;
}

.vrs-video-description h3 {
    margin-top: 0;
    font-size: 20px;
    color: #333;
}

.vrs-back-link {
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
}

.vrs-back-link a {
    color: #0073aa;
    text-decoration: none;
}

.vrs-back-link a:hover {
    text-decoration: underline;
}

.vrs-download-pdf-button {
    background: #2c3e50 !important;
    color: #fff !important;
}

.vrs-download-pdf-button:hover {
    background: #34495e !important;
}

/* ==========================================
   My Rentals Page Styles
   ========================================== */

.vrs-my-rentals {
    margin: 20px 0;
}

.vrs-my-rentals h2,
.vrs-my-rentals h3 {
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.vrs-my-rentals h3 {
    font-size: 20px;
}

.vrs-rentals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.vrs-rental-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vrs-rental-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vrs-rental-card.vrs-expiring-soon {
    border-color: #f39c12;
    border-width: 2px;
}

.vrs-rental-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.vrs-rental-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vrs-rental-content {
    padding: 20px;
}

.vrs-rental-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.vrs-rental-meta {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.vrs-rental-meta > div {
    margin-bottom: 8px;
}

.vrs-rental-meta .vrs-label {
    font-weight: 600;
    color: #333;
}

.vrs-days-remaining {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.vrs-status-good {
    color: #27ae60;
    font-weight: 600;
}

.vrs-status-warning {
    color: #f39c12;
    font-weight: 600;
}

.vrs-status-urgent {
    color: #e74c3c;
    font-weight: 700;
    font-size: 15px;
}

.vrs-rental-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.vrs-rental-actions .button {
    flex: 1;
    text-align: center;
    padding: 10px 15px;
}

.vrs-watch-button {
    background: #2c3e50 !important;
    color: #fff !important;
}

.vrs-watch-button:hover {
    background: #34495e !important;
}

.vrs-pdf-button {
    background: #95a5a6 !important;
    color: #fff !important;
}

.vrs-pdf-button:hover {
    background: #7f8c8d !important;
}

/* Expired Rentals Table */
.vrs-expired-rentals {
    margin-top: 40px;
}

.vrs-expired-rentals h3 {
    margin-bottom: 15px;
}

/* ==========================================
   Product Page Rental Info
   ========================================== */

.vrs-rental-info {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #2c3e50;
    border-radius: 4px;
}

.vrs-rental-info p {
    margin: 8px 0;
    font-size: 14px;
}

.vrs-rental-info .description {
    color: #666;
    font-size: 13px;
}

/* ==========================================
   Order Rental Info
   ========================================== */

.vrs-order-rental-info {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.vrs-order-rental-info p {
    margin: 8px 0;
    font-size: 14px;
}

.vrs-order-rental-info .button {
    margin-top: 5px;
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
    .vrs-video-player-page {
        padding: 10px;
    }

    .vrs-video-header {
        padding: 15px;
    }

    .vrs-video-title {
        font-size: 22px;
    }

    .vrs-rental-info-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .vrs-video-description {
        padding: 20px 15px;
    }

    .vrs-rentals-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .vrs-rental-actions {
        flex-direction: column;
    }

    .vrs-rental-actions .button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .vrs-video-title {
        font-size: 18px;
    }

    .vrs-my-rentals h2 {
        font-size: 20px;
    }

    .vrs-rental-title {
        font-size: 16px;
    }
}

/* ==========================================
   Admin Styles (inline in admin settings)
   ========================================== */

.vrs-admin-dashboard-widget {
    padding: 12px;
}

.vrs-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.vrs-stat-box {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    text-align: center;
}

.vrs-stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
}

.vrs-stat-label {
    display: block;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}







