/* assets/css/index.css */

/* --- TELJES OLDAL HÁTTÉR ÉS RÉSZECSKÉK (VILÁGOS TÉMA) --- */
body {
    background-color: #f8f9fa; 
    color: #212529; 
}

#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
    pointer-events: none; 
    /* High-Tech Versenyhajó (TP52/IMOCA) Mérnöki Tervrajz Vízjel */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'%3E%3Cdefs%3E%3Cpattern id='grid' width='40' height='40' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 40 0 L 0 0 0 40' fill='none' stroke='%230052a2' stroke-width='0.5' opacity='0.2'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='800' height='600' fill='url(%23grid)' /%3E%3Cg stroke='%230052a2' fill='none'%3E%3Cline x1='50' y1='450' x2='750' y2='450' stroke-width='1' stroke-dasharray='15 5 5 5' opacity='0.7'/%3E%3Cline x1='350' y1='20' x2='350' y2='580' stroke-width='0.5' stroke-dasharray='10 10' opacity='0.5'/%3E%3Cpath d='M 150 440 Q 300 460 650 420 L 650 430 Q 500 490 350 480 Q 200 470 150 450 Z' stroke-width='2'/%3E%3Cline x1='650' y1='420' x2='730' y2='410' stroke-width='1.5'/%3E%3Cline x1='650' y1='445' x2='730' y2='410' stroke-width='0.5' stroke-dasharray='4 4'/%3E%3Cpath d='M 320 480 L 310 560 L 350 560 L 360 480 Z' stroke-width='1.5'/%3E%3Cellipse cx='330' cy='560' rx='35' ry='8' stroke-width='2'/%3E%3Cpath d='M 180 445 L 175 510 L 195 510 L 205 450 Z' stroke-width='1'/%3E%3Cpath d='M 200 448 L 195 490 L 210 490 L 215 450 Z' stroke-width='0.5' opacity='0.5'/%3E%3Cline x1='350' y1='60' x2='350' y2='440' stroke-width='2.5'/%3E%3Cline x1='350' y1='400' x2='120' y2='415' stroke-width='2'/%3E%3Cpath d='M 345 400 L 345 60 L 290 75 Q 180 220 120 415 Z' stroke-width='1.5'/%3E%3Cline x1='345' y1='140' x2='240' y2='155' stroke-width='0.5'/%3E%3Cline x1='345' y1='220' x2='185' y2='235' stroke-width='0.5'/%3E%3Cline x1='345' y1='300' x2='145' y2='315' stroke-width='0.5'/%3E%3Cpath d='M 355 410 L 355 120 Q 480 260 645 420 Z' stroke-width='1.5'/%3E%3Cpath d='M 355 80 Q 550 200 730 410' stroke-width='0.5' stroke-dasharray='8 4'/%3E%3Cline x1='355' y1='120' x2='650' y2='420' stroke-width='0.8'/%3E%3Cline x1='345' y1='60' x2='110' y2='440' stroke-width='0.8'/%3E%3Cpath d='M 345 180 L 315 190 M 345 280 L 305 295' stroke-width='1'/%3E%3Cpath d='M 90 60 L 100 60 M 90 415 L 100 415 M 95 60 L 95 415' stroke-width='0.5'/%3E%3Ctext x='85' y='240' fill='%230052a2' font-family='monospace' font-size='12' transform='rotate(-90 85,240)' opacity='0.8'%3EMAST 22.5M%3C/text%3E%3Cpath d='M 330 580 L 330 570 M 650 580 L 650 570 M 330 575 L 650 575' stroke-width='0.5'/%3E%3Ctext x='450' y='590' fill='%230052a2' font-family='monospace' font-size='12' opacity='0.8'%3EHULL LOA 13.5M%3C/text%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 80vh; 
    opacity: 0.12; 
}

h3.section-title {
    color: #001f3f !important;
    font-weight: 800; 
    font-size: 1.8rem;
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    position: relative;
    margin-top: 4rem; 
    margin-bottom: 2.5rem;
    padding-bottom: 15px;
}

h3.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 6px; 
    width: 65px; 
    background: linear-gradient(90deg, #0d6efd, #00c6ff); 
    border-radius: 50px;
}

@keyframes floatIcon {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

h3.section-title i {
    display: inline-block; 
    animation: floatIcon 3.5s ease-in-out infinite; 
    margin-right: 12px;
}

.hero-wrapper {
    background: linear-gradient(135deg, #000c18 0%, #001f3f 100%); 
    position: relative;
    padding: 5rem 2rem; 
    border-radius: 40px; 
    margin-bottom: 2rem; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    min-height: 480px; 
    display: flex;
    align-items: center;
    width: 96%;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
}

.hero-content {
    position: relative;
    z-index: 2; 
    width: 100%;
    pointer-events: none; 
}

.hero-text-box, .hero-content a, .hero-content button {
    pointer-events: auto; 
}

.hero-text-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 2.5rem 1.5rem;
    max-width: 850px;
    margin: 0 auto;
}

.hero-text-box h1, .hero-text-box h5, .hero-text-box p {
    text-shadow: 0px 4px 15px rgba(0,0,0,0.9), 0px 0px 40px rgba(0,0,0,1) !important;
}

@media (max-width: 768px) {
    .hero-wrapper {
        padding: 2rem 1rem; 
        min-height: 400px;
        border-radius: 25px; 
        margin-bottom: 1.5rem; 
        width: 95%;
        margin-top: 15px;
    }
    .hero-text-box .display-4 {
        font-size: 1.6rem; 
        word-break: break-word; 
    }
    .hero-text-box .lead {
        font-size: 1.05rem; 
        min-height: 100px; 
    }
}

.custom-card {
    border: none; border-radius: 15px; transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.custom-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }

.comp-card-logo {
    width: 60px; height: 60px; object-fit: contain; 
    background: white; border-radius: 50%; padding: 3px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.calendar-container { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.calendar-header { 
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); 
    color: white; padding: 20px; text-align: center; 
}
.calendar-nav-btn { 
    color: white; text-decoration: none; font-size: 1.5rem; opacity: 0.8; transition: 0.2s; padding: 0 15px;
}
.calendar-nav-btn:hover { opacity: 1; color: #ffc107; transform: scale(1.2); }

.calendar-list-view { 
    display: block; background: #fff; border-radius: 0 0 20px 20px; padding: 20px;
}
.cal-item {
    border-left: 5px solid #0d6efd; background: #f8f9fa; margin-bottom: 15px; padding: 20px;
    border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: transform 0.2s;
}
.cal-item:hover { transform: translateX(5px); background: #fff; border-left-color: #0b5ed7; }
.cal-date {
    font-weight: 800; font-size: 1.2rem; color: #343a40; text-transform: uppercase;
    margin-bottom: 12px; border-bottom: 2px solid #e9ecef; padding-bottom: 8px; display: flex;
    justify-content: space-between; align-items: center;
}
.cal-event-link {
    display: block; padding: 12px 15px; background: white; border: 1px solid #dee2e6;
    border-radius: 8px; color: #0d6efd; text-decoration: none; font-weight: bold;
    margin-bottom: 8px; transition: all 0.2s;
}
.cal-event-link:hover { 
    background: #0d6efd; color: white; border-color: #0d6efd; box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}
.cal-event-link i { margin-right: 10px; }

.club-card-bg {
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
.club-card-content h5 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.8); z-index: 2;
}
.club-card-bg::before {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0,0,0,0.4); z-index: 1;
}

.carousel-fade .carousel-item {
    transition: opacity 1.5s ease-in-out !important; 
}

.flip-card-container {
    perspective: 1000px; 
    height: 380px; 
    margin-bottom: 2rem;
}
.flip-card {
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    position: relative;
    cursor: pointer;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.flip-card-container:hover .flip-card {
    transform: rotateY(180deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden; 
    border-radius: 20px;
    overflow: hidden; 
}

.flip-card-front {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    transform: translateZ(1px); 
}
.flip-card-front .cover-img {
    height: 55%;
    background-size: cover;
    background-position: center;
    background-color: #e3f2fd; 
}
.flip-card-front .card-body-front {
    height: 45%;
    padding: 2.5rem 1rem 1rem; 
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.flip-card-front .club-logo-wrapper {
    position: absolute;
    top: -45px; 
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 90px;
    background: #fff;
    border-radius: 50%;
    padding: 5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 2;
}
.flip-card-front .club-logo-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
}
.flip-card-back {
    background: linear-gradient(135deg, #0052a2, #00c6ff);
    color: white;
    transform: rotateY(180deg);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.series-front-bg {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); 
    color: white;
    height: 100%;
    padding: 2.5rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
.series-front-bg::after {
    content: '🏆'; 
    position: absolute;
    font-size: 8rem;
    opacity: 0.05;
    top: 20%;
}

.avatar-stack {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}
.avatar-stack .club-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid #203a43; 
    background: #fff;
    margin-left: -15px; 
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    z-index: 1;
    transition: transform 0.2s;
}
.avatar-stack .club-avatar:first-child { margin-left: 0; }
.avatar-stack .club-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.series-timeline {
    max-height: 200px; 
    overflow-y: auto;
    padding-right: 5px;
    margin-bottom: 1.5rem;
    text-align: left;
}
.series-timeline::-webkit-scrollbar { width: 4px; }
.series-timeline::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 4px; }

.timeline-item {
    position: relative;
    padding-left: 20px;
    margin-bottom: 15px;
    border-left: 2px solid rgba(255,255,255,0.2);
}
.timeline-item::before {
    content: ''; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px;
    border-radius: 50%; background: #ffc107; 
}

.premium-search-widget {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: none;
    color: white !important;
    z-index: 1;
}
.premium-search-widget:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2) !important;
}

.premium-search-watermark {
    position: absolute;
    right: -15px;
    bottom: -25px;
    font-size: 8rem;
    opacity: 0.15;
    z-index: -1;
    transform: rotate(-15deg);
    transition: all 0.4s ease;
}
.premium-search-widget:hover .premium-search-watermark {
    transform: rotate(0deg) scale(1.1);
    opacity: 0.25;
}

.premium-search-icon-box {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-search-arrow {
    transition: transform 0.3s ease;
    font-size: 1.8rem;
    opacity: 0.8;
}
.premium-search-widget:hover .premium-search-arrow {
    transform: translateX(10px);
    opacity: 1;
}

.bg-gradient-blue { background: linear-gradient(135deg, #0d6efd 0%, #00c6ff 100%); }
.bg-gradient-orange { background: linear-gradient(135deg, #ff512f 0%, #f09819 100%); }
.bg-gradient-green { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.bg-gradient-purple { background: linear-gradient(135deg, #4a00e0 0%, #8e2de2 100%); }
.bg-gradient-yellow { background: linear-gradient(135deg, #fde74c 0%, #ffb100 100%); }