/* Planning - Styles publics */

.planning-container {
    max-width: 100%;
    padding: 30px 20px;
}

.planning-header {
    text-align: center;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.planning-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--accent);
}

.planning-header p {
    color: #999;
    font-size: 14px;
}

.planningClass {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    width: 100%;
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
}

.selectedRow {
    flex-shrink: 0;
    width: 100%;
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(24, 24, 27, 0.9) 0%, rgba(30, 30, 36, 0.85) 100%);
    border: 2px solid rgb(56, 189, 248);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    min-height: auto;
}

.titreJours {
    color: #38bdf8;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding-bottom: 10px;
    font-size: 18px;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(56, 189, 248, 0.3);
}

.datePlanning {
    color: #e0e7ff;
    text-align: center;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
    background: rgba(56, 189, 248, 0.15);
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

.categorieHome {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    flex: 1;
}

.anime-card-premium {
    display: flex;
    flex-shrink: 0;
    aspect-ratio: 9 / 13;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.anime-card-premium:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(56, 189, 248, 0.2);
}

.anime-card-premium:hover .card-image {
    transform: scale(1.08);
}

.anime-card-premium a {
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.card-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 40%, transparent 80%);
    z-index: 2;
}

.image-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: shine 3s infinite;
    z-index: 3;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,0.7);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: bold;
    z-index: 4;
    backdrop-filter: blur(4px);
}

.anime-badge {
    top: 8px;
    left: 8px;
}

.anime-badge .badge-text {
    color: #60a5fa;
}

.scan-badge {
    top: 8px;
    left: 8px;
}

.scan-badge .badge-text {
    color: #34d399;
}

.language-badge-top {
    top: 8px;
    right: 8px;
}

.language-badge-top .flag-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    z-index: 5;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.card-title {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.content-divider {
    height: 1px;
    background: rgba(100, 116, 139, 0.6);
    margin-bottom: 8px;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 11px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e0e7ff;
    padding: 4px 0;
}

.info-item.episode:first-child {
    color: #38bdf8;
    font-weight: 600;
}

.info-text {
    color: inherit;
    font-size: 11px;
}

.info-text.font-bold {
    font-weight: bold;
    font-size: 12px;
    color: #fbbf24;
}

.time-icon-svg,
.info-icon-svg {
    width: 14px;
    height: 14px;
    color: inherit;
    stroke-width: 2;
    flex-shrink: 0;
}

.no-planning {
    text-align: center;
    padding: 40px;
    color: #999;
    max-width: 1200px;
    margin: 0 auto;
}

.opacity-50 {
    opacity: 0.5;
}

.planning-problem-red {
    color: #ef4444 !important;
    font-weight: bold;
}
