/* Gringosi Radio - Custom Theme */

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

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(-2deg); }
    50%       { transform: translateY(-8px) rotate(2deg); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 12px rgba(179, 169, 232, 0.2), 0 2px 8px rgba(0,0,0,0.4); }
    50%       { box-shadow: 0 0 28px rgba(179, 169, 232, 0.5), 0 2px 8px rgba(0,0,0,0.4); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

html {
    margin: 0;
    padding: 0;
    background-color: #0d0a1a;
}

body {
    padding: 0 25px 30px 50px;
    background-color: #0d0a1a;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(46, 31, 82, 0.75) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(26, 34, 68, 0.75) 0%, transparent 50%),
        linear-gradient(rgba(11, 9, 22, 0.86), rgba(11, 9, 22, 0.92)),
        url(background.png);
    background-size: auto, auto, auto, cover;
    background-position: 0 0, 0 0, 0 0, center top;
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
    background-attachment: scroll, scroll, scroll, fixed;
    font-family: 'Segoe UI', Verdana, sans-serif;
    color: #e6e2f7;
    animation: fadeIn 0.7s ease both;
}

a {
    color: #f5a8c4;
    text-decoration: none;
    border-bottom: 1px dotted #f5a8c4;
    transition: color 0.25s, border-color 0.25s, text-shadow 0.25s;
}

a:hover {
    color: #f0e9b0;
    border-bottom: 1px solid #f0e9b0;
    text-shadow: 0 0 8px rgba(240, 233, 176, 0.5);
}

/* === Header === */

#header-area {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 0 10px 0;
    animation: fadeIn 0.6s ease both;
}

#gringosi-logo {
    width: 72px;
    height: auto;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(179, 169, 232, 0.45));
}

h1 {
    font-family: 'Segoe UI', Verdana, sans-serif;
    font-weight: bold;
    font-size: 2.8em;
    color: #f5efc0;
    margin: 0;
    text-shadow: 0 0 30px rgba(245, 239, 192, 0.4), 0 2px 4px rgba(0,0,0,0.6);
    letter-spacing: 1px;
}

h1 span.subtitle {
    display: block;
    font-size: 0.38em;
    color: #b8aef0;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: none;
    margin-top: 2px;
}

h3 {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Verdana, sans-serif;
    font-weight: bold;
    font-size: 110%;
    color: #f5efc0;
}

h3 small {
    color: #a89fd4;
    font-size: 70%;
    padding-left: 15px;
}

/* === Live player === */

#live-player {
    text-align: center;
    margin: 6px 0 22px 0;
    animation: fadeIn 0.7s ease 0.1s both;
}

#live-player audio {
    width: 100%;
    max-width: 480px;
    height: 42px;
    border-radius: 30px;
    outline: none;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
}

/* === Menu / Ad slot === */

#menu {
    border-top: 1px solid #e88bb0;
    border-bottom: 1px solid #e88bb0;
    margin-bottom: 30px;
    padding: 12px 20px;
    background: linear-gradient(90deg, transparent, rgba(232, 139, 176, 0.08), transparent);
    animation: fadeIn 0.8s ease 0.2s both;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.promo-note {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 1.4em;
}

.promo-track {
    display: inline-block;
    white-space: nowrap;
    position: absolute;
    top: 0;
    left: 0;
    font-size: 15px;
    color: #f5efc0;
    animation: promo-scroll 30s linear infinite;
}

.promo-track a {
    color: #f5efc0;
    border-bottom: 1px dotted #f5efc0;
}

/* JS puni .promo-track sa dva identicna dela (svaki dovoljno kopija teksta
   da pokrije sirinu ekrana) - kad prvi deo otklizi tacno -50% (svoju sirinu),
   drugi je vec na startnoj poziciji, pa petlja izgleda neprekidno (bez praznine). */
@keyframes promo-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.login-btn {
    flex-shrink: 0;
    display: inline-block;
    background: linear-gradient(135deg, #f5a8c4, #ec84ac);
    color: #1a1730 !important;
    font-weight: 700;
    font-size: 15px;
    padding: 9px 20px;
    border-radius: 20px;
    border: none !important;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
}

.login-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    color: #1a1730;
    text-shadow: none;
}

.login-btn.small {
    padding: 6px 14px;
    font-size: 13px;
}

.discord-bot-desc {
    margin: 0 0 14px 0;
    line-height: 1.5;
    color: #cfc9e8;
}

.discord-bot-btn {
    font-size: 16px;
    padding: 11px 26px;
}

.discord-bot-legal {
    margin-top: 16px;
    font-size: 12.5px;
    color: #9088b0;
}

.discord-bot-legal a {
    color: #9088b0;
    border-bottom: none;
}

.discord-bot-legal a:hover {
    color: #f5a8c4;
}

.footer-sep {
    margin: 0 10px;
    opacity: 0.5;
}

.roundbox.wow-box {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(26, 23, 48, 0.88) 0%, rgba(32, 28, 61, 0.88) 60%, rgba(23, 20, 48, 0.92) 100%),
        url(wowserver.png);
    background-size: cover;
    background-position: center;
}

.wow-box-tagline {
    display: inline-block;
    margin: 0 0 10px 0;
    font-size: 12.5px;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #f5efc0;
    text-shadow: 0 0 10px rgba(245, 239, 192, 0.5);
}

.wow-box-btn {
    font-size: 16px;
    padding: 11px 26px;
}

.tos-list {
    margin: 0 0 14px 0;
    padding-left: 22px;
    line-height: 1.6;
}

.tos-list li {
    margin-bottom: 6px;
}

.mute-btn {
    background: none;
    border: 1px solid #332b5c;
    border-radius: 20px;
    color: #a89fd4;
    font-size: 15px;
    padding: 5px 10px;
    cursor: pointer;
    margin-right: 8px;
    transition: border-color 0.2s, background 0.2s;
}

.mute-btn:hover {
    border-color: #b3a9e8;
    background: rgba(179, 169, 232, 0.1);
}

/* === Public chat === */

#chat-box .mountcont {
    border-top: none;
    padding-top: 4px;
}

#chat-feed {
    min-height: 80px;
    max-height: 420px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

#chat-feed::-webkit-scrollbar {
    width: 5px;
}

#chat-feed::-webkit-scrollbar-thumb {
    background: #332b5c;
    border-radius: 3px;
}

.chat-empty {
    color: #8b84b0;
    font-size: 14px;
    font-style: italic;
}

.chat-msg {
    background: #14112a;
    border: 1px solid #332b5c;
    border-radius: 8px;
    padding: 8px 12px;
    animation: fadeIn 0.3s ease;
}

.chat-msg .nick {
    color: #b3a9e8;
    font-weight: 700;
    font-size: 14px;
}

.verified-badge {
    display: inline-block;
    color: #8fa8f5;
    font-size: 0.9em;
    margin-left: 1px;
}

.chat-msg .time {
    color: #8b84b0;
    font-size: 12px;
    float: right;
}

.chat-msg .text {
    color: #e6e2f7;
    font-size: 14px;
    margin-top: 3px;
    word-break: break-word;
}

.chat-form-hidden {
    display: none !important;
}

/* === Istorija pesama === */

#history-box .mountcont {
    border-top: none;
    padding-top: 4px;
}

#history-list {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 4px;
}

#history-list::-webkit-scrollbar {
    width: 5px;
}

#history-list::-webkit-scrollbar-thumb {
    background: #332b5c;
    border-radius: 3px;
}

.history-item {
    display: flex;
    align-items: baseline;
    gap: 12px;
    background: #14112a;
    border: 1px solid #332b5c;
    border-radius: 8px;
    padding: 7px 12px;
}

.history-time {
    color: #8b84b0;
    font-size: 12px;
    flex-shrink: 0;
    min-width: 38px;
}

.history-title {
    color: #e6e2f7;
    font-size: 14px;
    word-break: break-word;
}

.chat-nick-label {
    color: #b8aef0;
    font-size: 14px;
    margin-right: 4px;
}

.chat-auth-box {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #332b5c;
}

.chat-auth-tabs {
    display: flex;
    border: 1px solid #332b5c;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    max-width: 320px;
}

.chat-tab-btn {
    flex: 1;
    background: #14112a;
    color: #7a72a8;
    border: none;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s;
}

.chat-tab-btn.active {
    background: linear-gradient(135deg, #f0e9b0, #dcc978);
    color: #1a1730;
}

.chat-auth-err {
    color: #f0678f;
    font-size: 13px;
    margin-bottom: 8px;
    min-height: 1.2em;
}

.chat-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 420px;
}

.chat-form input {
    flex: 1;
    min-width: 140px;
    background: #14112a;
    border: 1px solid #332b5c;
    border-radius: 7px;
    color: #e6e2f7;
    padding: 9px 12px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-form input:focus {
    outline: none;
    border-color: #b3a9e8;
    box-shadow: 0 0 0 3px rgba(179, 169, 232, 0.18);
}

.chat-form input::placeholder {
    color: #4a4470;
}

.chat-compose-box {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #332b5c;
    max-width: 520px;
}

.chat-textarea-wrap {
    position: relative;
}

.chat-compose-box textarea {
    width: 100%;
    background: #14112a;
    border: 1px solid #332b5c;
    border-radius: 8px;
    color: #e6e2f7;
    padding: 10px 44px 10px 13px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    height: 70px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-compose-box textarea:focus {
    outline: none;
    border-color: #b3a9e8;
    box-shadow: 0 0 0 3px rgba(179, 169, 232, 0.18);
}

.emoji-toggle-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.15s;
}

.emoji-toggle-btn:hover {
    background: rgba(179, 169, 232, 0.15);
}

.emoji-picker {
    position: absolute;
    top: 40px;
    right: 8px;
    z-index: 20;
    width: 220px;
    max-height: 180px;
    overflow-y: auto;
    background: #14112a;
    border: 1px solid #332b5c;
    border-radius: 10px;
    padding: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    align-content: flex-start;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.emoji-opt {
    background: none;
    border: none;
    font-size: 19px;
    padding: 5px;
    cursor: pointer;
    border-radius: 6px;
    line-height: 1;
    transition: background 0.15s, transform 0.1s;
}

.emoji-opt:hover {
    background: rgba(179, 169, 232, 0.18);
    transform: scale(1.15);
}

.chat-compose-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    color: #8b84b0;
    font-size: 12px;
}

#chat-send-btn:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none;
}

.chat-send-status {
    font-size: 13px;
    margin-top: 6px;
    min-height: 1.2em;
}

.chat-send-status.ok {
    color: #b8aef0;
}

.chat-send-status.err {
    color: #f0678f;
}

/* === Status boxes === */

.roundbox {
    width: 90%;
    background: linear-gradient(135deg, #1a1730 0%, #201c3d 60%, #171430 100%);
    border: 1px solid #332b5c;
    border-radius: 14px;
    padding: 18px 24px;
    margin-bottom: 28px;
    animation: slideUp 0.6s ease 0.3s both, glow 4s ease-in-out 1s infinite;
    transition: transform 0.2s, border-color 0.3s;
}

.roundbox:hover {
    transform: translateY(-2px);
    border-color: #f5a8c4;
}

.roundbox h3 {
    margin-bottom: 12px;
    border-bottom: 1px solid #332b5c;
    padding-bottom: 8px;
    color: #f5efc0;
}

.roundbox table.yellowkeys tr td:last-child {
    color: #f5a8c4;
}

.roundbox table.yellowkeys tr td {
    padding: 6px 5px 2px 0;
    word-wrap: break-word;
    word-break: break-all;
}

.roundbox table.yellowkeys tr.contact-sep td {
    padding-top: 16px;
    color: #f5a8c4;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.82em;
    letter-spacing: 1px;
    border-top: 1px solid #332b5c;
}

/* === Table === */

table.colortable {
    border-collapse: collapse;
    padding: 20px 0;
    margin: 0 auto;
}

table.colortable td {
    border: 1px solid #332b5c;
    text-align: center;
    padding: 5px;
}

table.colortable thead tr td {
    color: #0d0a1a;
    background: #b3a9e8;
    border-color: #201c3d;
}

/* === Mount head / list === */

.right {
    float: right;
}

.mounthead h3 {
    float: left;
    margin-bottom: 0;
    border-bottom: none;
}

.mountcont {
    border-top: 1px solid #332b5c;
    clear: both;
    padding-top: 10px;
}

ul.mountlist {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: right;
}

.mountlist li {
    display: inline;
}

a.play {
    padding-left: 22px;
    margin-left: 20px;
    border: none;
    background: transparent url(/tunein.png) no-repeat scroll left center;
    background-size: auto 100%;
    color: #b8aef0;
    transition: color 0.2s;
}

a.play:hover {
    color: #b3a9e8;
}

a.auth {
    padding-left: 22px;
    margin-left: 20px;
    border: none;
    background: transparent url(/key.png) no-repeat scroll left top;
    background-size: auto 100%;
}

/* === Forms === */

form.alignedform label {
    text-align: right;
    display: inline-block;
    vertical-align: middle;
    width: 10em;
    margin: 0 1em 0 0;
}

form.alignedform input {
    display: inline-block;
    vertical-align: middle;
    border: 1px solid #b3a9e8;
    background-color: #201c3d;
    color: #b3a9e8;
    padding: 5px;
    border-radius: 4px;
    transition: box-shadow 0.2s;
}

form.alignedform input:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(179, 169, 232, 0.5);
}

/* === Admin nav === */

ul.nav {
    margin: 0;
    padding: 5px 0 10px 0;
    clear: both;
    list-style: none;
    text-align: center;
}

ul.nav li {
    display: inline;
}

ul.nav li a {
    border: 1px solid #332b5c;
    border-radius: 5px;
    display: inline-block;
    padding: .2em .8em;
    margin-top: .3em;
    background-color: #1a1730;
    white-space: nowrap;
    transition: background-color 0.2s, border-color 0.2s;
}

ul.nav li a:hover {
    color: #b3a9e8;
    background-color: #201c3d;
    border-color: #b3a9e8;
}

/* === Footer === */

#footer {
    border-top: 1px solid #332b5c;
    margin-top: 20px;
    font-size: 78%;
    color: #8b84b0;
    animation: fadeIn 1s ease 0.5s both;
}

/* === Responsive === */

@media (max-width: 800px) {
    body {
        padding: 0 10px 20px 10px;
    }

    .roundbox {
        width: auto;
        border-radius: 8px;
    }

    .roundbox table.yellowkeys tr td {
        display: block;
        padding: 5px 5px 0 0;
    }

    .roundbox table.yellowkeys tr td:last-child {
        margin-bottom: 5px;
        margin-left: 5px;
    }

    .scrolltable {
        overflow: auto;
    }

    h1 {
        font-size: 2em;
    }
}

@media (max-width: 320px) {
    ul.nav, #menu ul {
        display: block;
    }

    ul.nav li, #menu ul li {
        float: none;
    }

    ul.nav li a, #menu ul li a {
        display: block;
    }

    ul.nav li + li, #menu ul li + li {
        border-top: 1px solid #332b5c;
    }

    a.play {
        margin-left: 10px;
    }
}
