/* static/css/base.css */

/* Общие стили */

a {
    text-decoration: none;
    color: inherit !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-text-decoration-color: inherit !important;
    text-decoration-color: inherit !important;
}

/* Убирает синее выделение при нажатии */
a:visited {
    color: inherit !important;
}

/* Специфично для Safari - убирает системные цвета */
a:any-link {
    color: inherit !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: #242424;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #c9aa00;
    background-color: #242424;
    height: 100%;
}

.age_limit {
    border-radius: 50%;
    border: solid 1px red;
    font-size: 12px;
    padding: 8px;
}

.age_limit_popup {
    border-radius: 50%;
    border: solid 5px red;
    font-size: 36px;
    padding: 15px;
    width: 100px;
    height: 100px;
}

.popup_header {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.h2_popup {
    color: gold;
    margin-bottom: 20px;
    font-size: 28px;
}

.text_popup {
    color: gold;
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 16px;
}

.buttons_popup {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.display_none {
    display: none;
    transition: all 0.3s ease;
}

.closed_button {
    background: inherit;
    border: 0;
    color: #c9aa00;
}

.red_star {
    color: red;
}

h1 {
    font-size: 24px;
    margin: 30px 0;
}

h3 {
    position: relative;
    font-weight: 600;
    font-size: 26px;
}

h5 {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffd700;
}

/* Навигация */
.navbar {
    position: relative; /* Добавить для позиционирования псевдоэлемента */
    background-image: url(/static/images/black_fon.jpg);
    color: #ffd700;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.navbar:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Регулируйте прозрачность */
    z-index: -1;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.is-auth {
    display: flex;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 20px;
    background: url(/static/images/gold_logo_fon-2.jpg) no-repeat center/cover;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: yellow;
    background-clip: text;
    /*text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);*/
}

.logo {
    display: flex;
}

.logo a:after {
    content: "";
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: #ffd700;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Основной контент */
main {
    min-height: calc(100vh - 200px);
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Сообщения */
.messages-container {
    max-width: 1400px;
    margin: 0 auto 20px;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error,
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Футер */
footer {
    background-color: #000;
    color: white;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: #fff;
}

.footer-section p,
.footer-section a {
    color: #adb5bd;
    margin-bottom: 10px;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    background-color: #000000;
    color: #ffd700;
    text-align: center;
}

/* Утилитные классы */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.card {
    position: relative;
    background: #343434;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.background-rr {
    position: relative;
    z-index: 1;
    background-image: url(/static/images/black_fon.jpg);
}

.background-rr:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Регулируйте прозрачность */
    z-index: -1;
    border-radius: 10px;
}

.btn {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    border: solid 1px;
    background-color: inherit;
    color: #ffd700;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    z-index: 1;
}


.btn:hover {
    background-color: #5b5b5b;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #000;
}

.btn-primary-telegram {
    background-color: gold;
    padding: 10px 20px;
    color: black;
    display: flex;
}


.btn-primary-telegram img {
    width: 25px;
    margin-left: 10px;
}

.btn-primary:hover {
    background-color: #5b5b5b;
}

.btn-success {
    background-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-outline {
    background-color: transparent;
    color: #ffd700;
    border: 2px solid #ffd700;
    text-align: center;
}

.btn-outline:hover {
    background-color: #ffd700;
    color: #000;
    border: 2px solid #ffd700;
}

.website-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* Сплошной цвет с наклонными полосами названия */
.bg-pattern-1 {
    background: /* Основной цвет фона */ linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%),
        /* Текстовый паттерн */ repeating-linear-gradient(
            35deg,
            transparent,
            transparent 40px,
            rgba(0, 123, 255, 0.05) 40px,
            rgba(0, 123, 255, 0.05) 80px
    );
}

/* Альтернатива с более заметным текстом */
.bg-pattern-2 {
    background-color: #ffffff;
    background-image: repeating-linear-gradient(
            35deg,
            rgba(108, 117, 125, 0.05) 0px,
            rgba(108, 117, 125, 0.05) 100px,
            transparent 100px,
            transparent 200px
    );
}

.media_column {
    display: flex;
    flex-direction: row;
}

@media (max-width: 1080px) {
    .nav-links a {
        font-size: 12px;
    }

}

@media (max-width: 921px) {
    h1 {
        font-size: 20px;
    }

    .money-count {
        display: none !important;
    }

    .nav-container {
        padding: 0;
    }

    .age_limit {
        display: none;
    }

    .nav-links a {
        font-size: 12px;
        margin-right: 10px;
        padding: 8px 13px;
    }

    .media_column {
        display: flex;
    }
}

@media (max-width: 768px) {

    main {
        padding: 0;
    }

    h1 {
        font-size: 20px;
        margin: 20px 25px;
    }

    .card {
        padding: 0;
    }
}

@media (max-width: 700px) {
    .is-auth {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .nav-links .is-auth a {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .money-count {
        display: block !important;
    }

    .nav-links a {
        padding: 5px 15px;
        border: solid 1px;
        margin-bottom: 5px;
    }

    .nav-container {
        flex-direction: column;
        gap: 5px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-direction: column;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .container {
        padding: 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 16px;
        margin: 10px;
    }
    .nav-links {
        flex-direction: row;
        justify-content: space-between;
    }

    .navbar {
        padding: 0.5rem 0;
    }

    .nav-links a {
        font-size: 11px;
        margin-bottom: 0;
    }

    .nav-links .is-auth a {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .buttons_popup {
        flex-direction: column;
        align-items: center;
    }

    .text_popup {
        margin-bottom: 20px;
        font-size: 10px;
    }

    .h2_popup {
        margin-bottom: 10px;
        font-size: 18px;
    }

    .popup_header {
        margin-bottom: 15px;
    }

    .age_limit_popup {
        border-radius: 50%;
        border: solid 2px red;
        font-size: 18px;
        padding: 8px;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 380px) {
    .btn {
        padding: 10px 7px;
    }

    .btn-primary-telegram {
        padding: 10px 10px;
    }
}