/* Premium Features Design System */

:root {
    --pf-primary: #005890;
    --pf-secondary: #2B5CA6;
    --pf-success: #28a745;
    --pf-danger: #dc3545;
    --pf-warning: #ffc107;
    --pf-info: #17a2b8;
    
    --pf-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --pf-card-shadow-hover: 0 15px 45px rgba(0, 0, 0, 0.15);
    --pf-border-radius: 16px;
    --pf-transition: all 0.3s ease;
}

/* Theme specific overrides using existing theme classes */
.theme-white {
    --pf-card-bg: #ffffff;
    --pf-text-main: #212529;
    --pf-text-muted: #6c757d;
    --pf-card-border: rgba(0,0,0,0.05);
}

.theme-black {
    --pf-card-bg: #282828;
    --pf-text-main: #fcfcfc;
    --pf-text-muted: #afcbf3;
    --pf-card-border: rgba(255,255,255,0.1);
    --pf-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.theme-sepia {
    --pf-card-bg: #f5f1e5;
    --pf-text-main: #514d47;
    --pf-text-muted: #8b867a;
    --pf-card-border: rgba(0,0,0,0.05);
}

/* Common Styles */
.pf-container {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 0 20px;
}

.pf-title {
    color: var(--pf-primary);
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.theme-black .pf-title {
    color: #afcbf3;
}

/* Modern Card Layout */
.pf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.pf-card {
    background: var(--pf-card-bg);
    border: 1px solid var(--pf-card-border);
    border-radius: var(--pf-border-radius);
    overflow: hidden;
    box-shadow: var(--pf-card-shadow);
    transition: var(--pf-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pf-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--pf-card-shadow-hover);
}

.pf-card-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.pf-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--pf-transition);
}

.pf-card:hover .pf-card-image {
    transform: scale(1.05);
}

.pf-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pf-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pf-primary);
    margin-bottom: 0.75rem;
}

.theme-black .pf-card-title {
    color: #afcbf3;
}

.pf-card-text {
    color: var(--pf-text-main);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.pf-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--pf-card-border);
}

.pf-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--pf-primary);
}

.theme-black .pf-price {
    color: #afcbf3;
}

.pf-align-start {
    justify-content: start !important;
    gap: 0.5rem;
}

/* Buttons */
.pf-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--pf-transition);
    border: none;
    text-decoration: none;
    display: inline-block;
}

.pf-btn-primary {
    background-color: var(--pf-primary);
    color: white;
}

.pf-btn-primary:hover {
    background-color: #00426d;
    color: white;
    transform: scale(1.05);
}

.pf-btn-success {
    background-color: var(--pf-success);
    color: white;
}

.pf-btn-success:hover {
    background-color: #218838;
    color: white;
    transform: scale(1.05);
}

/* Status Indicators */
.pf-status {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pf-status-success { background: rgba(40, 167, 69, 0.1); color: var(--pf-success); }
.pf-status-danger { background: rgba(220, 53, 69, 0.1); color: var(--pf-danger); }
.pf-status-warning { background: rgba(255, 193, 7, 0.1); color: var(--pf-warning); }

/* Form Elements */
.pf-form-group {
    margin-bottom: 1.5rem;
}

.pf-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--pf-text-main);
}

.pf-input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    border: 1px solid var(--pf-card-border);
    background: var(--pf-card-bg);
    color: var(--pf-text-main);
    transition: var(--pf-transition);
}

.pf-input:focus {
    outline: none;
    border-color: var(--pf-primary);
    box-shadow: 0 0 0 3px rgba(0, 88, 144, 0.1);
}

/* Order Summary Box */
.pf-summary {
    background: var(--pf-card-bg);
    border: 1px solid var(--pf-card-border);
    border-radius: var(--pf-border-radius);
    padding: 2rem;
    box-shadow: var(--pf-card-shadow);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pf-container {
        margin-top: 80px;
    }
    .pf-title {
        font-size: 1.8rem;
    }
    .pf-grid {
        grid-template-columns: 1fr;
    }
}

/* Support for RTL */
[dir="rtl"] .pf-card-footer {
    flex-direction: row-reverse;
}

[dir="rtl"] .pf-status {
    flex-direction: row-reverse;
}
