/* Reset i osnovni stilovi */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #000000;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
}

/* Kontejner */
.container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
}

/* Metro pločice */
.metro-tile {
    background: #263238;
    color: #ffffff;
    border-radius: 6px;
    transition: transform 0.3s ease, background 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
}

.metro-tile:hover {
    background: #37474f;
    transform: scale(1.05);
}

/* Animacija THOMPSON i 2025 */
.text-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    margin-bottom: -20px;
    position: relative;
    min-height: 100px;
}

#thompson-text .letter {
    font-size: 4em;
    opacity: 0;
    transform: scale(1.5);
    transition: transform 0.3s ease, opacity 0.3s ease, font-size 0.3s ease, top 0.3s ease;
    margin: 0 5px;
    position: absolute;
    left: 50%;
    top: -20px;
    transform-origin: center;
    transform: translateX(-50%) scale(1.5);
}

#thompson-text .letter.active {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    font-size: 3em;
    top: -3em;
}

#thompson-text .letter.final {
    position: static;
    transform: none;
}

#year-text {
    margin-top: -25px;
}

#year-text .letter {
    font-size: 3em;
    opacity: 0;
    transform: scale(1.5);
    transition: transform 0.3s ease, opacity 0.3s ease, font-size 0.3s ease;
    margin: 0 5px;
    position: absolute;
    left: 50%;
    transform-origin: center;
    transform: translateX(-50%) scale(1.5);
}

#year-text .letter.active {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    font-size: 2em;
    top: 0;
}

#year-text .letter.final {
    position: static;
    transform: none;
}

.line {
    width: 0;
    height: 4px;
    background-color: #ffffff;
    transition: width 1s ease-in-out, background-color 0.3s ease;
    margin: 10px auto 20px;
}

.line.active {
    width: 100%;
}

.line.final {
    background-color: #d81b60;
}

/* Sponzori */
.sponsors h2 {
    font-size: 1.5em;
    text-align: center;
    margin: 20px 0;
}

.installations {
    font-size: 1.2em;
    color: #ffffff;
    border: 2px solid #d81b60;
    padding: 10px;
    margin: 0 auto 40px;
    width: fit-content;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0 0 15px rgba(216, 27, 96, 0.8);
    transition: box-shadow 0.3s ease;
    cursor: pointer;
}

.installations.clicked {
    animation: pulseGlow 0.5s ease-in-out;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 15px rgba(216, 27, 96, 0.8); }
    50% { box-shadow: 0 0 25px rgba(216, 27, 96, 1); }
    100% { box-shadow: 0 0 15px rgba(216, 27, 96, 0.8); }
}

.sponsor-section, .vip-section, .info-section, .message-section {
    margin: 30px 0;
}

.sponsor-section h3, .vip-section h3, .info-section h3, .message-section h3 {
    font-size: 1.3em;
    text-align: center;
    margin-bottom: 15px;
}

.sponsor-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.sponsor-item.metro-tile {
    padding: 15px;
    font-size: 1em;
    flex: 0 0 calc(33.33% - 10px);
}

.vip-square {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 4px solid #ffffff;
    background: transparent;
    opacity: 0;
    transition: opacity 1s ease-in-out, border-color 0.3s ease;
}

.vip-square.active {
    opacity: 1;
}

.vip-square.final {
    border-color: #d81b60;
}

.vip-sponsor.metro-tile {
    padding: 15px;
    font-size: 1.1em;
    font-weight: 700;
}

/* Info sekcija */
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.tab-button.metro-tile {
    padding: 15px;
    font-size: 1em;
    flex: 1;
    max-width: 200px;
}

.tab-button.metro-tile.active {
    background: #d81b60;
}

.tab-content.metro-tile {
    padding: 15px;
    border: 2px solid #ffffff;
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
}

.tab-content h3 {
    margin-top: 0;
    font-size: 1.2em;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    margin-bottom: 8px;
}

.info-list a {
    color: #d81b60;
    text-decoration: none;
}

.info-list a:hover {
    text-decoration: underline;
}

/* Forma za poruku */
.message-form.metro-tile {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #263238;
    border-radius: 6px;
}

.message-form input[type="email"],
.message-form textarea {
    width: 100%;
    padding: 12px;
    background-color: #333333;
    border: 2px solid #ffffff;
    border-radius: 6px;
    color: #ffffff;
    font-size: 1em;
}

.message-form textarea {
    height: 120px;
    resize: vertical;
}

.message-form #char-count {
    font-size: 0.9em;
    color: #cccccc;
    text-align: right;
}

.message-form button.metro-tile {
    padding: 12px;
    background: #d81b60;
    border: none;
    font-size: 1em;
    border-radius: 6px;
}

.message-form button.metro-tile:hover {
    background: #ad1457;
}

/* Povratak i Instagram */
.return-link.metro-tile {
    display: block;
    text-align: center;
    padding: 12px;
    margin: 20px auto;
    max-width: 300px;
    background: #d81b60;
    border-radius: 6px;
}

.return-link.metro-tile:hover {
    background: #ad1457;
}

.instagram-section {
    text-align: center;
    margin: 20px 0;
}

.instagram-link.metro-tile {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    gap: 10px;
    font-size: 1em;
    background: #263238;
    border-radius: 6px;
}

.instagram-link.metro-tile:hover {
    background: #37474f;
}

.instagram-link img {
    width: 30px;
    height: 30px;
}

/* Responzivnost */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    #thompson-text .letter {
        font-size: 3em;
    }

    #thompson-text .letter.active {
        font-size: 2em;
        top: -2em;
    }

    #year-text .letter {
        font-size: 2em;
    }

    #year-text .letter.active {
        font-size: 1.5em;
    }

    .sponsor-item.metro-tile {
        flex: 0 0 calc(50% - 10px);
        font-size: 0.9em;
    }

    .vip-sponsor.metro-tile {
        font-size: 1em;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-button.metro-tile {
        max-width: none;
    }

    .message-form.metro-tile {
        padding: 15px;
    }

    .message-form input[type="email"],
    .message-form textarea {
        padding: 10px;
    }

    .message-form button.metro-tile {
        padding: 10px;
    }

    .instagram-link img {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 5px;
    }

    .sponsor-item.metro-tile {
        flex: 0 0 calc(100% - 10px);
        font-size: 0.8em;
    }

    .vip-sponsor.metro-tile {
        font-size: 0.9em;
    }

    .tab-content.metro-tile {
        max-height: 200px;
    }

    .message-form input[type="email"],
    .message-form textarea {
        font-size: 0.9em;
    }

    .message-form button.metro-tile {
        font-size: 0.9em;
    }

    .instagram-link.metro-tile {
        font-size: 0.9em;
    }

    .instagram-link img {
        width: 20px;
        height: 20px;
    }
}