/* Frontend Styles for Ofertë Verë Pro */
.ovp-offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.ovp-offer-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #eaeaea;
    position: relative;
}

.ovp-offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.ovp-offer-card-header {
    background: linear-gradient(135deg, #8B0000 0%, #B22222 100%);
    color: white;
    padding: 20px;
    position: relative;
}

.ovp-offer-card-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.ovp-offer-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FFD700;
    color: #8B0000;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ovp-offer-card-body {
    padding: 20px;
}

.ovp-offer-coupon {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.ovp-coupon-label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.ovp-coupon-code {
    font-family: 'Courier New', monospace;
    background: #f5f5f5;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #8B0000;
    border: 1px dashed #ccc;
}

.ovp-copy-btn {
    background: #8B0000;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ovp-copy-btn:hover {
    background: #6B0000;
    transform: scale(1.05);
}

.ovp-offer-expiry {
    background: #FFF8E1;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    color: #E65100;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ovp-offer-card-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.ovp-view-offer-btn {
    display: inline-block;
    background: linear-gradient(135deg, #8B0000 0%, #D32F2F 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
}

.ovp-view-offer-btn:hover {
    background: linear-gradient(135deg, #6B0000 0%, #B22222 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 0, 0, 0.2);
}

/* Single Offer Page */
.ovp-single-offer {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.ovp-single-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #8B0000 0%, #B22222 100%);
    color: white;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.ovp-single-header:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
}

.ovp-single-header h1 {
    font-size: 42px;
    margin: 0 0 15px 0;
    position: relative;
    z-index: 1;
}

.ovp-single-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.ovp-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.ovp-meta-item i {
    font-size: 20px;
}

.ovp-single-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .ovp-single-content {
        grid-template-columns: 1fr;
    }
}

.ovp-products-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ovp-coupon-section-single {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.ovp-coupon-section-single h3 {
    color: #D32F2F;
    margin-bottom: 20px;
}

.ovp-coupon-main {
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 3px;
    color: #8B0000;
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 3px dashed #8B0000;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ovp-coupon-main:hover {
    background: #FFF8E1;
    transform: scale(1.02);
}

.ovp-coupon-main.copied {
    background: #E8F5E9;
    border-color: #4CAF50;
    color: #2E7D32;
}

.ovp-coupon-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.ovp-action-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ovp-action-btn-primary {
    background: linear-gradient(135deg, #8B0000 0%, #D32F2F 100%);
    color: white;
}

.ovp-action-btn-primary:hover {
    background: linear-gradient(135deg, #6B0000 0%, #B22222 100%);
    transform: translateY(-3px);
}

.ovp-action-btn-secondary {
    background: #F5F5F5;
    color: #666;
    border: 2px solid #ddd;
}

.ovp-action-btn-secondary:hover {
    background: #EAEAEA;
    border-color: #ccc;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .ovp-offers-grid {
        grid-template-columns: 1fr;
    }
    
    .ovp-single-header h1 {
        font-size: 28px;
    }
    
    .ovp-coupon-main {
        font-size: 24px;
        padding: 15px;
    }
    
    .ovp-action-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .ovp-offer-coupon {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ovp-coupon-code {
        text-align: center;
        padding: 12px;
    }
}

/* Landscape Optimizations */
@media (orientation: landscape) and (max-height: 600px) {
    .ovp-offer-card {
        display: flex;
        flex-direction: column;
        max-height: 300px;
    }
    
    .ovp-offer-card-body {
        flex: 1;
        overflow-y: auto;
    }
}

/* Print Styles */
@media print {
    .ovp-offer-card {
        break-inside: avoid;
        box-shadow: none;
        border: 2px solid #000;
    }
    
    .ovp-coupon-code {
        background: white !important;
        border: 2px solid #000 !important;
        color: #000 !important;
    }
}

/* Accessibility */
.ovp-offer-card:focus-within {
    outline: 3px solid #8B0000;
    outline-offset: 2px;
}

.ovp-copy-btn:focus {
    outline: 3px solid #8B0000;
    outline-offset: 2px;
}

/* Loading States */
.ovp-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.ovp-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8B0000;
    border-radius: 50%;
    animation: ovp-spin 1s linear infinite;
}

@keyframes ovp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.ovp-error-message {
    background: #FFEBEE;
    color: #C62828;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #C62828;
    margin: 20px 0;
}

/* Success States */
.ovp-success-message {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #2E7D32;
    margin: 20px 0;
}