/* 
 * King Yacht - Modern Infographic System
 * Dark Premium Theme for Data-Rich Sections
 */

:root {
    --infog-light-bg: #f8fafd;
    --infog-card-bg: rgba(255, 255, 255, 0.8);
    --infog-gold: #b8860b; /* Deep gold for readability on light */
    --infog-gold-light: #d4af37;
    --infog-gold-glow: rgba(212, 175, 55, 0.2);
    --infog-navy: #0a2540;
    --infog-text: #333;
    --infog-text-muted: #666;
    --infog-accent: #007bff;
    --infog-border: rgba(10, 37, 64, 0.1);
}

.ky-infographic-shell {
    background: var(--infog-light-bg);
    color: var(--infog-text);
    padding: 60px 20px;
    border-radius: 20px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(10, 37, 64, 0.05);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--infog-border);
}

.ky-infographic-shell::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 300px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.ky-infog-title {
    color: var(--infog-navy);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.ky-infog-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--infog-gold);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Species Cards Grid */
.ky-species-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.ky-species-card {
    background: #ffffff;
    border: 1px solid var(--infog-border);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.ky-species-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 37, 64, 0.1);
    border-color: var(--infog-gold-light);
}

.ky-species-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #eee;
}

.ky-species-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ky-species-card:hover .ky-species-img-wrapper img {
    transform: scale(1.08);
}

.ky-species-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--infog-navy);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ky-species-body {
    padding: 25px;
    flex-grow: 1;
}

.ky-species-name {
    color: var(--infog-navy);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.ky-species-meta {
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.ky-species-stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.ky-species-stat label {
    font-weight: 700;
    color: var(--infog-text-muted);
}

.ky-species-stat span {
    color: var(--infog-navy);
    font-weight: 600;
}

/* Calendar Infographic Table */
.ky-calendar-container {
    margin-top: 50px;
    overflow-x: auto;
}

.ky-cal-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 5px;
}

.ky-cal-table th {
    background: rgba(10, 37, 64, 0.03);
    color: var(--infog-navy);
    padding: 15px 10px;
    text-align: center;
    border-radius: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 800;
}

.ky-cal-table td {
    padding: 12px 8px;
    text-align: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid transparent;
}

.ky-table-fish-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
    margin: 0 auto 5px;
    background: #fff;
    border-radius: 50%;
    padding: 2px;
    border: 1px solid var(--infog-gold-light);
}

.ky-cal-table th span {
    display: block;
    font-size: 0.65rem;
    line-height: 1.1;
}

/* Durations Infographic - Teal Ocean Theme (Inspired by User Infographic) */
.ky-durations-infog-shell {
    background: #3e7b78; /* Teal from provided image */
    border-radius: 20px;
    padding: 40px;
    color: #fff;
    margin: 40px 0;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    font-family: 'Inter', sans-serif;
}

.ky-durations-header-title {
    font-size: 2.2rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 40px;
    text-transform: uppercase;
    line-height: 1.1;
    color: #fff;
}

.ky-durations-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ky-duration-block {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    min-height: 200px;
    border: 1px solid rgba(255,255,255,0.1);
}

.ky-duration-text {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ky-duration-text h4 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
    border-bottom: 3px solid rgba(255,255,255,0.2);
    padding-bottom: 8px;
}

.ky-duration-text p {
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.4;
    opacity: 0.95;
}

.ky-duration-graphic {
    position: relative;
    overflow: hidden;
}

.ky-duration-graphic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ky-duration-block:hover .ky-duration-graphic img {
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ky-durations-infog-shell {
        padding: 30px 15px;
        border-radius: 0;
        margin: 30px -15px;
    }
    .ky-duration-block {
        grid-template-columns: 1fr;
    }
    .ky-duration-graphic {
        height: 180px;
        order: 2;
    }
    .ky-duration-text {
        order: 1;
        padding: 25px;
    }
    .ky-durations-header-title {
        font-size: 1.6rem;
    }
}

.ky-cal-level-high {
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(184, 134, 11, 0.2);
}

.ky-cal-level-good {
    background: #eef4ff;
    color: var(--infog-navy);
    border: 1px solid rgba(0, 123, 255, 0.1) !important;
}

.ky-cal-level-low {
    background: #f9f9f9;
    color: #bbb;
}

.ky-cal-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--infog-text-muted);
}

.ky-cal-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ky-legend-box {
    width: 18px;
    height: 18px;
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ky-infographic-shell {
        padding: 40px 10px;
        border-radius: 0;
        margin: 20px -10px;
        border-left: none;
        border-right: none;
    }
    .ky-cal-table th, .ky-cal-table td {
        padding: 8px 4px;
        font-size: 0.65rem;
    }
    .ky-cal-legend {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}
