/* ============================================
   CENOVNIK - RESPONSIVE PRICING PAGE STYLES
   Mobile-first approach with card layout
   ============================================ */

/* ===========================================
   HERO SECTION
   =========================================== */
.pricing-hero {
    background: linear-gradient(rgba(10, 25, 47, 0.95), rgba(10, 25, 47, 0.95)), url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--light-text);
    text-align: center;
    padding: clamp(120px, 20vh, 140px) 0 clamp(40px, 10vh, 60px);
    position: relative;
    width: 100%;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.pricing-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
}

.pricing-hero h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(to right, var(--accent-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease;
    word-break: break-word;
    hyphens: auto;
}

.pricing-hero p {
    font-size: clamp(1rem, 4vw, 1.5rem);
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text);
    animation: fadeInUp 1.2s ease;
    word-break: break-word;
    hyphens: auto;
    padding: 0 15px;
}

/* ===========================================
   PRICING SECTION - BASE STYLES
   =========================================== */
.pricing-section {
    padding: clamp(30px, 8vh, 80px) 0;
    position: relative;
    width: 100%;
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* ===========================================
   PRICING CATEGORY CARDS
   =========================================== */
.pricing-category {
    margin-bottom: 30px;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(100, 255, 218, 0.1);
    backdrop-filter: blur(10px);
}

.pricing-category-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.pricing-category-header i {
    font-size: 2rem;
    color: white;
}

.pricing-category-header h2 {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    color: white;
    margin: 0;
    text-align: center;
}

/* ===========================================
   TABLE CONTAINER
   =========================================== */
.table-container {
    width: 100%;
    overflow: hidden;
}

/* ===========================================
   PRICING TABLE - DESKTOP STYLES
   =========================================== */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table thead {
    display: table-header-group;
}

.pricing-table th {
    background: rgba(26, 86, 219, 0.2);
    color: var(--accent-light);
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

.pricing-table tbody {
    display: table-row-group;
}

.pricing-table tr {
    display: table-row;
}

.pricing-table td {
    display: table-cell;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    color: var(--text);
    vertical-align: top;
}

.pricing-table tr:last-child td {
    border-bottom: none;
}

.pricing-table tr:hover {
    background: rgba(26, 86, 219, 0.1);
}

/* ===========================================
   PRICE STYLING
   =========================================== */
.price {
    font-weight: 700;
    color: var(--accent-light);
    white-space: normal;
    word-break: break-word;
    display: inline-block;
}

.price-note {
    font-size: 0.85rem;
    color: var(--orange-light);
    font-style: italic;
    margin-top: 5px;
}

/* ===========================================
   DISCLAIMER SECTION
   =========================================== */
.pricing-disclaimer {
    background: rgba(26, 86, 219, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    border-left: 4px solid var(--orange);
}

.pricing-disclaimer h3 {
    color: var(--accent-light);
    margin-bottom: 15px;
    font-size: clamp(1.1rem, 4vw, 1.3rem);
}

.pricing-disclaimer p {
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

.pricing-disclaimer ul {
    margin-left: 20px;
    color: var(--text);
}

.pricing-disclaimer li {
    margin-bottom: 8px;
    font-size: clamp(0.9rem, 3vw, 1rem);
}

/* ===========================================
   ANIMATIONS
   =========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================================
   TABLET STYLES (768px - 1024px)
   =========================================== */
@media (max-width: 1024px) {
    .pricing-table th,
    .pricing-table td {
        padding: 14px 15px;
        font-size: 0.95rem;
    }
    
    .pricing-category-header {
        padding: 18px;
    }
}

/* ===========================================
   MOBILE STYLES - CARD LAYOUT (max-width: 768px)
   Transforms tables into stacked cards
   =========================================== */
@media (max-width: 768px) {
    /* Hero adjustments */
    .pricing-hero {
        min-height: 40vh;
        padding: clamp(100px, 15vh, 120px) 0 clamp(30px, 8vh, 50px);
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .pricing-hero h1 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        letter-spacing: 1px;
    }
    
    .pricing-hero p {
        font-size: clamp(0.95rem, 3.5vw, 1.2rem);
    }
    
    /* Pricing section adjustments */
    .pricing-section {
        padding: clamp(25px, 6vh, 50px) 0;
    }
    
    .pricing-container {
        padding: 0 10px;
    }
    
    .pricing-category {
        margin-bottom: 25px;
        border-radius: 12px;
    }
    
    .pricing-category-header {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .pricing-category-header i {
        font-size: 1.8rem;
    }
    
    .pricing-category-header h2 {
        font-size: 1.3rem;
    }
    
    /* Hide table header on mobile */
    .pricing-table thead {
        display: none;
    }
    
    /* Transform table to block layout */
    .pricing-table,
    .pricing-table tbody {
        display: block;
        width: 100%;
    }
    
    /* Each row becomes a card */
    .pricing-table tr {
        display: block;
        margin: 0;
        padding: 15px;
        border-bottom: 1px solid rgba(100, 255, 218, 0.15);
        background: transparent;
        transition: background 0.3s ease;
    }
    
    .pricing-table tr:last-child {
        border-bottom: none;
    }
    
    .pricing-table tr:active {
        background: rgba(26, 86, 219, 0.15);
    }
    
    /* Each cell becomes a row with label */
    .pricing-table td {
        display: flex;
        flex-direction: column;
        padding: 8px 0;
        border-bottom: none;
        text-align: left;
        position: relative;
    }
    
    /* Show labels from data-label attribute */
    .pricing-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--accent-light);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
        opacity: 0.9;
    }
    
    /* Service name styling (first column) */
    .pricing-table td:first-child {
        font-weight: 600;
        font-size: 1.05rem;
        color: var(--light-text, #fff);
        padding-top: 0;
    }
    
    /* Description styling (second column) */
    .pricing-table td:nth-child(2) {
        font-size: 0.9rem;
        color: var(--text);
        opacity: 0.85;
        line-height: 1.5;
    }
    
    /* Price styling (third column) */
    .pricing-table td:nth-child(3) {
        padding-bottom: 0;
        margin-top: 5px;
    }
    
    .price {
        font-size: 1.1rem;
        display: block;
    }
    
    .price-note {
        font-size: 0.8rem;
        margin-top: 3px;
    }
    
    /* Disclaimer adjustments */
    .pricing-disclaimer {
        padding: 15px;
        margin-top: 20px;
    }
    
    .pricing-disclaimer ul {
        margin-left: 15px;
    }
}

/* ===========================================
   SMALL MOBILE STYLES (max-width: 480px)
   =========================================== */
@media (max-width: 480px) {
    .pricing-hero {
        min-height: 35vh;
        padding: clamp(90px, 12vh, 110px) 0 clamp(25px, 6vh, 40px);
    }
    
    .pricing-hero h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    
    .pricing-hero p {
        font-size: clamp(0.9rem, 3vw, 1rem);
        padding: 0 10px;
    }
    
    .pricing-section {
        padding: 20px 0;
    }
    
    .pricing-container {
        padding: 0 8px;
    }
    
    .pricing-category {
        margin-bottom: 20px;
        border-radius: 10px;
    }
    
    .pricing-category-header {
        padding: 12px;
    }
    
    .pricing-category-header i {
        font-size: 1.5rem;
    }
    
    .pricing-category-header h2 {
        font-size: 1.15rem;
    }
    
    .pricing-table tr {
        padding: 12px;
    }
    
    .pricing-table td:first-child {
        font-size: 1rem;
    }
    
    .pricing-table td:nth-child(2) {
        font-size: 0.85rem;
    }
    
    .price {
        font-size: 1rem;
    }
    
    .pricing-disclaimer {
        padding: 12px;
        border-radius: 8px;
    }
    
    .pricing-disclaimer h3 {
        font-size: 1rem;
    }
    
    .pricing-disclaimer p,
    .pricing-disclaimer li {
        font-size: 0.85rem;
    }
}

/* ===========================================
   EXTRA SMALL SCREENS (max-width: 360px)
   =========================================== */
@media (max-width: 360px) {
    .pricing-hero h1 {
        font-size: 1.4rem;
    }
    
    .pricing-hero p {
        font-size: 0.85rem;
    }
    
    .pricing-category-header h2 {
        font-size: 1.05rem;
    }
    
    .pricing-table tr {
        padding: 10px;
    }
    
    .pricing-table td::before {
        font-size: 0.7rem;
    }
    
    .pricing-table td:first-child {
        font-size: 0.95rem;
    }
    
    .pricing-table td:nth-child(2) {
        font-size: 0.8rem;
    }
    
    .price {
        font-size: 0.95rem;
    }
    
    .price-note {
        font-size: 0.75rem;
    }
}

/* ===========================================
   LANDSCAPE MODE ADJUSTMENTS
   =========================================== */
@media (max-width: 768px) and (orientation: landscape) {
    .pricing-hero {
        min-height: 60vh;
        padding: 80px 0 30px;
    }
    
    .pricing-hero h1 {
        font-size: 1.8rem;
    }
    
    .pricing-hero p {
        font-size: 1rem;
    }
}

/* ===========================================
   HIGH DPI / RETINA DISPLAY ADJUSTMENTS
   =========================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .pricing-category {
        border-width: 0.5px;
    }
    
    .pricing-table td {
        border-bottom-width: 0.5px;
    }
}

/* ===========================================
   TOUCH DEVICE OPTIMIZATIONS
   =========================================== */
@media (hover: none) and (pointer: coarse) {
    .pricing-table tr:hover {
        background: transparent;
    }
    
    .pricing-table tr:active {
        background: rgba(26, 86, 219, 0.1);
    }
    
    /* Larger touch targets */
    .pricing-table td {
        min-height: 44px;
    }
}

/* ===========================================
   PRINT STYLES
   =========================================== */
@media print {
    .pricing-hero {
        background: none !important;
        color: #000;
        padding: 20px 0;
        min-height: auto;
    }
    
    .pricing-hero h1 {
        background: none;
        -webkit-text-fill-color: #000;
        color: #000;
    }
    
    .pricing-category {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
    
    .pricing-table thead {
        display: table-header-group;
    }
    
    .pricing-table tr {
        display: table-row;
    }
    
    .pricing-table td {
        display: table-cell;
    }
    
    .pricing-table td::before {
        display: none;
    }
}

/* ===========================================
   ACCESSIBILITY - REDUCED MOTION
   =========================================== */
@media (prefers-reduced-motion: reduce) {
    .pricing-hero h1,
    .pricing-hero p {
        animation: none;
    }
    
    .pricing-table tr {
        transition: none;
    }
}

/* ===========================================
   DARK MODE SUPPORT (if needed)
   =========================================== */
@media (prefers-color-scheme: dark) {
    /* Already dark theme, but can add adjustments here */
}