/* Root varijable */
:root {
    --primary-color: #333333;
    --secondary-color: #666666;
    --background-color: #ffffff;
    --surface-color: #f8f9fa;
    --card-color: #ffffff;
    --text-color: #222222;
    --text-muted: #666666;
    --border-color: #e9ecef;
    --hover-color: #f1f3f5;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
}

/* Animacije */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes borderGlow {
    0% { box-shadow: 0 0 0 0 rgba(51, 51, 51, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(51, 51, 51, 0); }
    100% { box-shadow: 0 0 0 0 rgba(51, 51, 51, 0); }
}

/* Reset i osnovni stilovi */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background-color: var(--primary-color);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: fadeIn 0.5s ease-out;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem 0;
    gap: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: white;
    transition: var(--transition);
}

nav ul li a:hover::before {
    width: 80%;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Main layout */
main {
    max-width: 1440px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    gap: 2rem;
    flex-grow: 1;
    animation: fadeIn 0.8s ease-out;
}

/* Stil za padajući meni */
.league-select {
    width: 80%;
    padding: 10px;
    font-size: 16px;
    color: #333;
    border: 2px solid #007bff;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
}

.league-select:hover {
    background-color: #e6f7ff;
    border-color: #0056b3;
}

.league-select:focus {
    background-color: #ffffff;
    border-color: #0056b3;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}

.league-select option {
    font-size: 16px;
    color: #333;
    background-color: #ffffff;
}

/* Centriranje */
#league-selection p {
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Style the logo container */
#logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px; /* Add some space below */
}

/* Style the logo image */
#logo {
    width: 50px; /* Set logo size */
    height: auto;
    margin-right: 15px; /* Space between logo and text */
}

/* Style the logo text */
#logo-text {
    font-family: 'Arial', sans-serif; /* Change font as desired */
    font-size: 28px; /* Large font size */
    font-weight: bold;
    color: #444; /* Dark color for the text */
}

/* League selection sidebar */
#league-selection {
    background-color: var(--card-color);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

#league-selection:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

#league-selection h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

#league-selection h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

#league-selection:hover h2::after {
    width: 100px;
}
/* Ad space */
#ad-space {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
}

#ad-space img {
    max-width: 100%;
    border-radius: 8px;
}
.buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    background-color: var(--surface-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 1.2rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    width: 100%;
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Widget styles */
#league-widgets iframe {
    width: 100% !important;
    min-height: 600px !important; /* Povećana visina */
}

#league-widgets {
    width: 100% !important;
    max-width: 1200px !important; /* Povećana maksimalna širina */
    margin: 40px auto;
    padding: 0 20px;
}

.scoreaxis-widget {
    width: 100% !important;
    padding: 20px !important; /* Veći padding */
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--card-color);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    box-shadow: var(--shadow-lg);
}

.close-button {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--surface-color);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

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

/* Content section */
#content {
    background-color: var(--card-color);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

#content:hover {
    box-shadow: var(--shadow-lg);
}

#content h1 {
    color: var(--text-color);
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

#content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 1024px) {
    main {
        grid-template-columns: 1fr 2fr;
    }
    #ad-space {
        display: none;
    }
    .news-iframe {
        height: 500px;
    }
    .modal-content {
        width: 95%;
    }
}

@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    #league-selection {
        margin-bottom: 1rem;
    }
    .news-iframe {
        height: 400px;
    }
    .league-item {
        padding: 0.6rem;
    }
    .league-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .news-iframe {
        height: 300px;
    }
    #content {
        padding: 1rem;
    }
    .modal-content {
        padding: 1rem;
    }
}