/* Kozármisleny Kézilabda Akadémia - Custom Styles */
/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* General Styles */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #000000;
    color: #ffffff;
}

* {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Navigation */
#mainNav {
    background-color: rgba(255, 255, 255, 0.98);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid #082d6dbe;
}

#mainNav .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#mainNav .navbar-toggler {
    border: 2px solid #082d6dbe;
    padding: 0.5rem 0.75rem;
}

#mainNav .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(8, 45, 109, 0.25);
}

#mainNav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23082d6dbe' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#mainNav .navbar-collapse {
    width: 100%;
}

#mainNav .navbar-nav {
    flex-direction: row;
    gap: 0;
    justify-content: center;
    margin-bottom: 0.5rem;
}

#mainNav .nav-item {
    position: relative;
}

#mainNav .nav-link {
    color: #333333;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
}

#mainNav .nav-link:hover {
    color: #082d6dbe;
    background-color: rgba(8, 45, 109, 0.05);
}

#mainNav .nav-link.active {
    color: #ffffff;
    background-color: #082d6dbe;
}

#mainNav .navbar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    margin: 0;
    transition: all 0.3s ease;
    opacity: 1;
    max-height: 100px;
    overflow: hidden;
}

#mainNav .navbar-brand .logo-img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

#mainNav .navbar-brand .brand-text {
    color: #082d6dbe;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

#mainNav.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 0.25rem 0;
}

#mainNav.navbar-scrolled .navbar-brand {
    opacity: 0;
    max-height: 0;
    padding: 0;
    margin: 0;
}

#mainNav.navbar-scrolled .navbar-nav {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    #mainNav .container {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    #mainNav .w-100 {
        margin-bottom: 0.5rem;
    }
    
    #mainNav .navbar-toggler {
        display: block;
        position: relative;
        z-index: 10;
    }
    
    #mainNav .navbar-nav {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0.5rem;
        background-color: #ffffff;
        width: 100%;
    }
    
    #mainNav .navbar-collapse {
        background-color: #ffffff;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 0.5rem;
        border: 1px solid rgba(8, 45, 109, 0.2);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        width: 100%;
    }
    
    #mainNav .nav-link {
        padding: 0.75rem 1rem;
        border-left: 3px solid transparent;
        text-align: center;
        color: #333333;
        background-color: transparent;
        white-space: normal;
        font-size: 0.9rem;
    }
    
    #mainNav .nav-link:hover {
        border-left-color: #082d6dbe;
        background-color: rgba(8, 45, 109, 0.05);
        color: #333333;
    }
    
    #mainNav .nav-link.active {
        border-left-color: #082d6dbe;
        background-color: rgba(8, 45, 109, 0.1);
        color: #333333;
    }
    
    #mainNav .navbar-brand {
        margin-top: 0.5rem;
        background-color: transparent;
        flex-direction: column;
        text-align: center;
    }
    
    #mainNav .navbar-brand .brand-text {
        font-size: 0.95rem;
        color: #082d6dbe;
        text-align: center;
    }
    
    #mainNav .navbar-brand .logo-img {
        max-height: 40px;
    }
}

/* Tippmix Banner */
.tippmix-banner {
    width: 90%;
    max-width: 1200px;
    background-color: #000000;
    padding: 0;
    margin: 140px auto 0;
    position: relative;
    z-index: 999;
}

.tippmix-banner a {
    display: block;
    width: 100%;
    line-height: 0;
}

.tippmix-banner .banner-img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 150px;
    object-fit: cover;
    object-position: center;
}

.navbar-scrolled ~ .tippmix-banner {
    margin-top: 80px;
}

@media (max-width: 991px) {
    .tippmix-banner {
        margin-top: 180px;
        max-width: 95%;
    }
    
    .navbar-scrolled ~ .tippmix-banner {
        margin-top: 100px;
    }
    
    .tippmix-banner .banner-img {
        max-height: 100px;
    }
}

@media (max-width: 576px) {
    .tippmix-banner {
        margin-top: 200px;
        max-width: 100%;
    }
    
    .tippmix-banner .banner-img {
        max-height: 80px;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('/images/bg/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section .hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .hero-section .hero-title {
        font-size: 2.5rem;
    }
}

.hero-section .hero-subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .hero-section .hero-subtitle {
        font-size: 1.2rem;
    }
}

.hero-section .hero-buttons .btn {
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-section .scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-section .scroll-indicator a {
    color: #ffffff;
    font-size: 2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Section Styles */
section {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

.section-subtitle {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 3rem;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #b0b0b0;
    margin-bottom: 1.5rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #082d6dbe 0%, #436b91 100%);
    margin-bottom: 2rem;
}

/* Sponsors Section */
.section-sponsors {
    background: linear-gradient(135deg, #000000 0%, #2d2d2d 100%);
    padding: 100px 0;
    position: relative;
}

.section-sponsors .sponsors-carousel {
    margin-bottom: 40px;
}

.section-sponsors .sponsors-carousel .carousel-inner {
    padding: 20px 0;
}

.section-sponsors .sponsor-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.section-sponsors .sponsor-link:hover {
    transform: translateY(-10px);
}

.section-sponsors .sponsor-box {
    background: white;
    border: 3px solid rgba(8, 45, 109, 0.3);
    border-radius: 15px;
    padding: 30px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.section-sponsors .sponsor-box:hover {
    border-color: #082d6dbe;
    box-shadow: 0 10px 30px rgba(8, 45, 109, 0.4);
}

.section-sponsors .sponsor-logo {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    
    transition: filter 0.3s ease;
}

.section-sponsors .sponsor-box:hover .sponsor-logo {
    filter: grayscale(0%);
}

/* Carousel controls */
.section-sponsors .carousel-control-prev,
.section-sponsors .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(8, 45, 109, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

.section-sponsors .carousel-control-prev:hover,
.section-sponsors .carousel-control-next:hover {
    opacity: 1;
    background: #082d6dbe;
}

.section-sponsors .carousel-control-prev-icon,
.section-sponsors .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.section-sponsors .carousel-control-prev {
    left: -60px;
}

.section-sponsors .carousel-control-next {
    right: -60px;
}

/* Carousel indicators */
.section-sponsors .carousel-indicators {
    bottom: -40px;
}

.section-sponsors .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(8, 45, 109, 0.5);
    border: 2px solid #082d6dbe;
}

.section-sponsors .carousel-indicators button.active {
    background-color: #082d6dbe;
}

@media (max-width: 991px) {
    .section-sponsors .carousel-control-prev {
        left: 10px;
    }
    
    .section-sponsors .carousel-control-next {
        right: 10px;
    }
}

@media (max-width: 767px) {
    .section-sponsors .sponsor-box {
        height: 150px;
        padding: 20px;
    }
    
    .section-sponsors .sponsor-box .sponsor-logo {
        max-height: 100px;
    }
}

/* Blog Preview Section */
.section-blog-preview {
    background-color: #000000;
}

.blog-card {
    background-color: #000000;
    border-radius: 1rem;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: #082d6dbe;
    box-shadow: 0 15px 40px rgba(13, 217, 240, 0.533);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background-color: #2d2d2d;
}

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

.blog-card-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #082d6dbe 0%, #436b91 100%);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.blog-card-content {
    padding: 2rem;
}

.blog-card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.blog-card-title a {
    color: #ffffff;
}

.blog-card-title a:hover {
    color: #082d6dbe;
}

.blog-card-excerpt {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-card-link {
    color: #082d6dbe;
    font-weight: 600;
}

.blog-card-link i {
    transition: transform 0.3s ease;
}

.blog-card-link:hover i {
    transform: translateX(5px);
}

/* Contact Section */
.section-contact .contact-info-card {
    background-color: #2d2d2d;
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.section-contact .contact-info-card:hover {
    transform: translateY(-10px);
    border-color: #082d6dbe;
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
}

.contact-info-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #082d6dbe 0%, #436b91 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-info-icon i {
    font-size: 2rem;
    color: #ffffff;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #082d6dbe 0%, #436b91 100%) !important;
    border: none !important;
    color: #ffffff !important;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 25px rgba(8, 45, 109, 0.4) !important;
}

.btn-outline-light {
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: #ffffff;
    color: #000000;
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background-color: #2d2d2d;
    padding: 4rem 0 2rem;
    color: #b0b0b0;
}

.footer-title {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-text {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background-color: #3a3a3a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, #082d6dbe 0%, #436b91 100%);
    transform: translateY(-5px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links li a {
    color: #b0b0b0;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: #ffffff;
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-contact li i {
    color: #082d6dbe;
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.footer-divider {
    border-color: #3a3a3a;
    margin: 2rem 0;
}

.footer-copyright {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin: 0;
}

/* Team Section */
.section-team {
    background-color: #000000;
    min-height: 100vh;
}

.player-card {
    background-color: #2d2d2d;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
}

.player-card:hover {
    transform: translateY(-10px);
    border-color: #082d6dbe;
    box-shadow: 0 15px 40px rgba(8, 45, 109, 0.3);
}

.player-photo {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: #1a1a1a;
}

.player-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.player-card:hover .player-photo img {
    transform: scale(1.1);
}

.player-info {
    padding: 1.5rem;
    text-align: center;
    color: #ffffff
}

.player-name {
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.player-position {
    color: #ffffffbe;
    font-weight: 600;
    margin: 0;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .player-photo {
        height: 250px;
    }
    
    .player-photo img {
        object-position: top;
    }
    
    .player-name {
        font-size: 1.1rem;
    }
    
    .player-position {
        font-size: 0.9rem;
    }
}

/* Tickets Section */
.section-tickets {
    background-color: #000000;
    min-height: 100vh;
}

.ticket-info-card {
    background-color: #2d2d2d;
    border-radius: 1rem;
    padding: 2.5rem;
    border: 2px solid #082d6dbe;
}

.ticket-text {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.ticket-slogan {
    color: #ffffffbe;
    font-size: 1.2rem;
    font-weight: 600;
}

.rules-card {
    background-color: #2d2d2d;
    border-radius: 0.75rem;
    padding: 2rem;
    border-left: 4px solid #082d6dbe;
}

.rules-heading {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.rules-list {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.8;
    padding-left: 1.5rem;
}

.rules-list li {
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: #ffffff;
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
}

@media (max-width: 768px) {
    .ticket-info-card {
        padding: 1.5rem;
    }
    
    .ticket-text {
        font-size: 1rem;
    }
    
    .rules-card {
        padding: 1.5rem;
    }
    
    .rules-heading {
        font-size: 1.2rem;
    }
}

/* Press Registration Section */
.section-press {
    background-color: #000000;
    min-height: 100vh;
}

.press-intro-card {
    background-color: #2d2d2d;
    border-radius: 1rem;
    padding: 2rem;
    border: 2px solid #082d6dbe;
    text-align: center;
}

.press-intro-text {
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 0;
}

.press-form-card {
    background-color: #2d2d2d;
    border-radius: 1rem;
    padding: 2.5rem;
    border: 2px solid #082d6dbe;
}

.press-form-card .form-label {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.press-form-card .form-control {
    background-color: #1a1a1a;
    border: 2px solid #3a3a3a;
    color: #ffffff;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.press-form-card .form-control:focus {
    background-color: #1a1a1a;
    border-color: #082d6dbe;
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(8, 45, 109, 0.25);
}

.press-form-card .form-check-label {
    color: #ffffff;
    font-weight: 500;
}

.press-form-card .form-check-input {
    background-color: #1a1a1a;
    border: 2px solid #3a3a3a;
}

.press-form-card .form-check-input:checked {
    background-color: #082d6dbe;
    border-color: #082d6dbe;
}

.press-form-card .form-check-input:focus {
    border-color: #082d6dbe;
    box-shadow: 0 0 0 0.2rem rgba(8, 45, 109, 0.25);
}

@media (max-width: 768px) {
    .press-intro-card {
        padding: 1.5rem;
    }
    
    .press-intro-text {
        font-size: 1rem;
    }
    
    .press-form-card {
        padding: 1.5rem;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 6rem 0 4rem;
    }
    
    #mainNav .navbar-collapse {
        background-color: rgba(26, 26, 26, 0.95);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-top: 1rem;
    }
}

/* Navbar Brand Wrapper */
.navbar-brand-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    position: relative;
}

/* Navigation Match Cards */
.nav-match-card {
    background: linear-gradient(135deg, rgba(8, 45, 109, 0.95) 0%, rgba(67, 107, 145, 0.95) 100%);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    min-width: 180px;
    max-width: 200px;
    text-decoration: none;
    color: #ffffff;
    display: block;
}

.nav-match-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(8, 45, 109, 0.4);
    color: #ffffff;
    text-decoration: none;
}

.nav-match-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.nav-match-teams {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.2rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-match-teams strong {
    color: #ffc107;
    font-weight: 700;
}

.nav-match-date {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.8);
}

#mainNav.navbar-scrolled .navbar-brand-wrapper {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

@media (max-width: 1400px) {
    .nav-match-card {
        min-width: 160px;
        max-width: 180px;
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .nav-match-teams {
        font-size: 0.75rem;
    }
}

@media (max-width: 1200px) {
    .navbar-brand-wrapper {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-match-card {
        max-width: 100%;
        width: 100%;
    }
}

/* YouTube Embed Styles */
.youtube-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px 0;
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.youtube-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Blog post content styling */
.post-content-body .youtube-embed-wrapper {
    margin: 30px auto;
    max-width: 100%;
}

@media (max-width: 768px) {
    .youtube-embed-wrapper {
        margin: 15px 0;
        border-radius: 4px;
    }
}
