/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Club Colors - Blue and Pink */
:root {
    --primary-blue: #1e3c72;
    --secondary-blue: #2a5298;
    --primary-pink: #ff69b4;
    --secondary-pink: #ff1493;
    --light-pink: #ffb6c1;
    --accent-pink: #ffc0cb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex !important;
    align-items: center;
    position: relative;
    z-index: 1001;
}

.logo a {
    display: flex;
    align-items: center;
    line-height: 0;
}

.logo-img {
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    object-fit: contain;
    opacity: 1 !important;
    visibility: visible !important;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-pink);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    color: #333;
    padding: 0.5rem 1rem;
    display: block;
    font-size: 0.9rem;
}

.dropdown-menu a:hover {
    background-color: var(--light-pink);
    color: var(--primary-blue);
    transform: translateX(5px);
    transition: all 0.3s ease;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section with Photo Slider */
.hero {
    height: 80vh;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(30, 60, 114, 0.7), 
        rgba(42, 82, 152, 0.7),
        rgba(255, 105, 180, 0.3)
    );
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 1.2s ease-out;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    animation: bounceIn 1.5s ease-out 0.3s both;
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideInLeft 1.5s ease-out 0.6s both;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 4;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(255, 105, 180, 0.8);
    transform: scale(1.1);
}

.nav-btn:active {
    transform: scale(0.95);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background: rgba(255, 105, 180, 0.8);
    transform: scale(1.2);
}

.dot.active {
    background: var(--primary-pink);
    border-color: white;
    transform: scale(1.3);
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-pink), var(--secondary-pink));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.6);
    animation: none;
}

.btn-secondary {
    background: var(--primary-blue);
    color: white;
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--primary-blue);
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    padding: 4rem 0;
    margin-top: 80px;
}

/* News Section */
.news-section {
    margin-bottom: 4rem;
}

.news-section h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    text-align: center;
    animation: slideInDown 1s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.news-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    border-left: 4px solid var(--primary-pink);
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 105, 180, 0.1), transparent);
    transition: left 0.5s ease;
}

.news-card:hover::before {
    left: 100%;
}

.news-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255, 105, 180, 0.2);
    border-left-color: var(--secondary-pink);
}

.news-category {
    background: var(--primary-blue);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
    animation: bounce 2s ease-in-out infinite;
}

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

.news-card h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.news-card p {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: #1e3c72;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--primary-pink);
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.show-more {
    text-align: center;
}

/* Matches Section */
.matches-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.matches-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.upcoming-matches h3,
.recent-results h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-pink);
    position: relative;
    animation: slideInRight 1s ease-out;
}

.upcoming-matches h3::after,
.recent-results h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-pink);
    animation: expandWidth 1.5s ease-out 0.5s forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes expandWidth {
    to {
        width: 100%;
    }
}

.matches-list,
.results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.match-item,
.result-item {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--primary-blue);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.match-item::before,
.result-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--primary-pink);
    transition: height 0.3s ease;
}

.match-item:hover::before,
.result-item:hover::before {
    height: 100%;
}

.match-date,
.result-date {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.match-teams,
.result-teams {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.match-time {
    color: #1e3c72;
    font-weight: 600;
}

.result-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score {
    background: var(--primary-blue);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
    animation: pulse 2s ease-in-out infinite;
}

.view-all {
    color: #1e3c72;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: inline-block;
}

.view-all:hover {
    color: var(--primary-pink);
    transform: translateX(5px);
    transition: all 0.3s ease;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary-pink);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 5px var(--primary-pink);
    }
    to {
        text-shadow: 0 0 20px var(--primary-pink), 0 0 30px var(--primary-pink);
    }
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

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

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-pink);
    transform: scale(1.2) rotate(5deg);
    transition: all 0.3s ease;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--primary-blue);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        z-index: 999;
        gap: 0;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255,255,255,0.1);
        margin-top: 0.5rem;
        border-radius: 8px;
        box-shadow: none;
    }
    
    .dropdown-menu a {
        color: white !important;
        padding: 0.5rem 1rem;
    }
    
    .dropdown-menu a:hover {
        background-color: rgba(255, 105, 180, 0.3);
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .slide-content h1 {
        font-size: 2.5rem;
    }
    
    .slide-content p {
        font-size: 1.1rem;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-nav {
        padding: 0 1rem;
    }
    
    .slider-dots {
        bottom: 1rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .matches-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .slide-content h1 {
        font-size: 2rem;
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .slider-nav {
        padding: 0 0.5rem;
    }
    
    .slide-content {
        padding: 0 1rem;
    }
    
    .news-section h2 {
        font-size: 2rem;
    }
    
    .news-card {
        padding: 1.5rem;
    }
    
    .matches-section {
        padding: 1.5rem;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card,
.match-item,
.result-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Floating animation elements */
.floating-element {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-pink);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    background: var(--secondary-pink);
    animation-delay: 2s;
    animation-duration: 8s;
}

.floating-element:nth-child(3) {
    background: var(--primary-blue);
    animation-delay: 4s;
    animation-duration: 7s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(-10px) rotate(240deg);
    }
}

/* Add floating elements to hero section */
.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 30px;
    height: 30px;
    background: var(--primary-pink);
    border-radius: 50%;
    opacity: 0.2;
    animation: float 8s ease-in-out infinite;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 30%;
    left: 5%;
    width: 15px;
    height: 15px;
    background: var(--secondary-pink);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite reverse;
}

/* Player and Staff Photos */
.player-photo img,
.staff-photo img,
.team-group-photo img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Vodstvo Photos */
.board-section img,
.leadership-section img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Sponsor Images */
.sponsors-section img,
.sponsors-grid img,
.sponsors-content img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* About Club Section Images */
.about-club-section img,
.about-club-content img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Sponsors Carousel */
.sponsors-carousel {
    background: var(--primary-pink) !important;
    padding: 2rem 0;
    overflow: hidden;
    position: relative;
    margin-top: 4rem;
    display: block !important;
    visibility: visible !important;
}

.sponsors-carousel-track {
    display: flex !important;
    animation: scroll 30s linear infinite;
    width: max-content;
    visibility: visible !important;
}

.sponsors-carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.sponsors-carousel-item {
    flex: 0 0 auto;
    padding: 0 3rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
}

.sponsors-carousel-item img {
    height: 80px !important;
    width: auto !important;
    object-fit: contain !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
    display: block !important;
    visibility: visible !important;
    filter: none !important;
}

.sponsors-carousel-item img:hover {
    opacity: 1 !important;
    transform: scale(1.15);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(255, 105, 180, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--primary-pink);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 20px 15px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    border-radius: 4px;
    backdrop-filter: blur(10px);
}

.lightbox-prev {
    margin-left: -50px;
}

.lightbox-next {
    margin-right: -50px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--primary-pink);
    transform: scale(1.1);
}

.lightbox-caption {
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 1.2rem;
    margin-top: 10px;
    background-color: rgba(30, 60, 114, 0.8);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        padding: 15px 10px;
        font-size: 18px;
    }
    
    .lightbox-prev {
        margin-left: 0;
    }
    
    .lightbox-next {
        margin-right: 0;
    }
    
    .lightbox-close {
        font-size: 30px;
        top: -35px;
    }
    
    .lightbox-caption {
        font-size: 1rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1e3c72;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2a5298;
} 