@font-face {
    font-family: "Cherry Bomb One";
    src: url("/fonts/CherryBombOne-Regular.woff2") format("woff2"),
        url("/fonts/CherryBombOne-Regular.woff") format("woff"),
        url("/fonts/CherryBombOne-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --indigo-color: #9400ff;
    --deep-pink-color: #ec368d; /* rgb(236,54,141) */
    --apricot-color: #ffd6c0;
    --pink-color: #ffc0cb;
    --raisin-black-color: #272727;
    --deep-dark-color: #212121;
}

::-webkit-input-placeholder {
    color: white;
}

::-moz-placeholder {
    color: white;
}

::-ms-placeholder {
    color: white;
}

::placeholder {
    color: white;
}

.text-bg-gradient {
    color: #fff;
    background: linear-gradient(
        to right,
        var(--indigo-color),
        var(--deep-pink-color)
    );
}

input[type="checkbox"] {
    accent-color: var(--pink-color);
    width: 18px;
    height: 18px;
}

::selection {
    background-color: #7800ce;
    color: white;
}

hr {
    border: none;
    border-top: 1px solid rgb(73, 73, 73) !important; /* Kolor i grubość */
}

body {
    background: var(--deep-dark-color);
    color: white;
}

img {
    user-select: none;
}

.bg-303030 {
    background: #303030;
}

.deep-pink {
    color: var(--deep-pink-color);
}

.g-recaptcha {
    width: fit-content;
    margin: auto;
}

.form-container {
    display: flex;
    flex-direction: column;
    margin: auto;
    min-width: 500px;
    width: 30%;
    padding: 50px;
    margin-top: 50px;
    background: linear-gradient(rgba(236, 54, 141, 0.1), rgba(0, 0, 0, 0.7)),
        url("../img/bg_dark.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 0 10px black;
}

.form-container form {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
}

input.login-form,
input.register-form {
    color: white;
    font-family: monospace;
    border: none;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 15;
}
/* Ogólny styl dla inputów w obu formularzach */
input.login-form,
input.register-form {
    width: 100%;
    color: white;
    font-family: monospace;
    border: none;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    box-sizing: border-box;
}

/* Style dla placeholdera */
input.login-form::placeholder,
input.register-form::placeholder {
    color: white;
    opacity: 0.7;
}

/* Kontener na hasło i ikonkę (bez zmian, jest uniwersalny) */
.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Dodanie paddingu do inputów w kontenerze z hasłem */
.password-container input.login-form,
.password-container input.register-form {
    padding-right: 40px; /* Robi miejsce na ikonkę */
}

/* Styl i pozycjonowanie ikonki (bez zmian, jest uniwersalny) */
.password-container .password-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: white;
}

/* Poprawka dla autouzupełniania dla obu typów inputów */
input.login-form:-webkit-autofill,
input.register-form:-webkit-autofill,
input.login-form:-webkit-autofill:hover,
input.register-form:-webkit-autofill:hover,
input.login-form:-webkit-autofill:focus,
input.register-form:-webkit-autofill:focus,
input.login-form:-webkit-autofill:active,
input.register-form:-webkit-autofill:active {
    box-shadow: 0 0 0 30px rgba(0, 0, 0, 0.8) inset !important;
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

input:focus-visible {
    outline: var(--indigo-color) solid 2px;
}

form > input[type="submit"] {
    background: linear-gradient(
        to right,
        var(--indigo-color),
        var(--deep-pink-color)
    );
    border-radius: 20px;
    border: none;
    box-shadow: 0 0 10px black;
    color: black;
    font-weight: bold;
    transition: all 0.3s;
}

form > input[type="submit"]:disabled {
    filter: grayscale(0.8);
    cursor: not-allowed !important;
    box-shadow: none;
    transition: all 1s;
}

form > input.error {
    outline: maroon solid 2px;
}

h1 {
    color: var(--deep-pink-color);
}

h3 {
    padding-left: 0.5rem;
    background: var(--deep-pink-color);
    background: linear-gradient(
        45deg,
        var(--deep-pink-color) -50%,
        rgba(0, 0, 0, 0) 90%
    );
    width: fit-content;
}

.play-icon {
    position: absolute;
    font-size: 2rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: linear-gradient(
        to right,
        var(--indigo-color),
        var(--deep-pink-color)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.post-thumbnail-link {
    background: #1c1c1c;
}

.post-thumbnail-link:hover .play-icon {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.05);
    transition: all 0.3s;
}

.c-pointer {
    cursor: pointer;
}

/* unvisited link */
a:link {
    color: var(--pink-color);
    text-decoration: underline;
}

/* visited link */
a:visited {
    color: var(--apricot-color);
    text-decoration: underline;
}

/* mouse over link */
a:hover {
    color: white;
}

/* selected link */
a:active {
    color: silver;
}

.title {
    font-family: "Cherry Bomb One", system-ui;
    color: var(--pink-color);
    text-shadow: 3px 1px var(--deep-pink-color), -2px -1px var(--indigo-color);
    width: fit-content;
    text-decoration: none;
    user-select: none;
    cursor: pointer;
    transition: all 0.2s;
}

.title:hover {
    color: white;
    transition: all 0.5s;
}

#search-button {
    border: none;
    background-color: transparent;
    color: white;
    padding: 0.5rem;
    cursor: pointer;
}

#content {
    display: flex;
    flex-direction: column;
    margin: auto;
    min-width: 500px;
    width: 30%;
    padding: 50px;
    margin-top: 50px;
}

.img-preview-remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.img-preview-remove-btn:hover {
    background-color: red;
}

.upload-preview {
    max-height: 66vh;
    background: linear-gradient(
        to right,
        var(--indigo-color),
        var(--deep-pink-color)
    );
    border: 1px solid var(--indigo-color);
}

.user-profile-settings {
    background-color: var(--raisin-black-color);
}
.user-profile-content-row {
    min-height: 120px;
    background-color: var(--raisin-black-color);
    margin-bottom: 10px;
    padding: 15px;
    box-sizing: border-box;
}
.user-profile-content-row:last-child {
    height: auto; /* Allows this row to fill remaining space */
}

#post-show-left {
    flex: 1.5;
    padding: 1rem;
    margin: 0 0 0 0.5rem;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    background: #2a2a2a;
}

#post-show-right {
    flex: 1;
    padding: 1rem;
}

.post-img-container {
    width: 100%;
    max-height: 77vh;
    margin-bottom: 1rem;
    background: #1c1c1c;
}

.content {
    margin: 15px 15px 0 15px;
}

/* Masonry base */
.grid {
    /* żeby Masonry mógł liczyć procentową pozycję */
    width: 100%;
}

.grid-sizer {
    width: 12.5%;
}

.grid-item {
    width: 12.5%;
    margin-bottom: 10px;
}

.grid-item--wide {
    width: 62.5%;
}

/* Drobna stylizacja zawartości */
.grid-item > .card {
    height: 100%;
}

/* Obrazki wewnątrz elementów */
img.post-thumbnail {
    display: block;
    width: 100%;
    height: auto;
}

/* Wysuwające się opcje (przyciski na tle) */
.options-overlay {
    position: absolute;
    bottom: -30px;
    right: 0;
    width: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    display: flex;
    justify-content: flex-end;
    gap: 0.2rem;
    padding: 0 0.4rem 0.2rem;
    visibility: hidden;
    opacity: 0;
    z-index: 10;
    transition: all 0.2s ease;
}

/* Pojawiająca się animacja dla tła */
.masonry-item:hover .options-overlay {
    visibility: visible;
    opacity: 1;
    bottom: 0;
    transition: all 0.2s ease;
}

/* Ikony przycisków */
.options-overlay i {
    color: white;
    font-size: 18px;
    margin-left: 0.5rem;
    cursor: pointer;
    z-index: 10;
    padding: 0.4rem;
}

.options-overlay i:hover {
    color: var(--deep-pink-color);
}

/* Stylowanie modala */
.custom-modal {
    display: none; /* Modal jest ukryty domyślnie */
    position: fixed; /* Pozostaje na miejscu podczas przewijania */
    z-index: 100; /* Na wierzchu */
    left: 0;
    top: 0;
    width: 100%; /* Pełna szerokość */
    height: 100%; /* Pełna wysokość */
    background-color: rgba(36, 36, 36, 0.5); /* Tło z przezroczystością */
    overflow: auto; /* Przewijanie, jeśli modal jest za duży */
    justify-content: center;
    align-items: center;
}

/* Zawartość modala */
.custom-modal-content {
    background-color: rgb(46, 46, 46);
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px; /* Maksymalna szerokość */
    text-align: center;
}

/* Stylowanie listy opcji */
.custom-modal-options-list {
    list-style-type: none; /* Usuwamy punkty listy */
    padding: 0;
    margin: 20px 0; /* Odstępy od tytułu */
}

.custom-modal-options-list li {
    padding: 10px 20px;
    background-color: #4a4a4a;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.custom-modal-options-list li:hover {
    filter: brightness(1.3);
}

.custom-modal-close-btn {
    padding: 10px 20px;
    background-color: var(--deep-pink-color);
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 0;
}

.custom-modal-close-btn:hover {
    filter: brightness(1.3);
}

/* Niestandardowa różowa kolorystyka */

.btn-outline-pink {
    color: #e91e63;
    border-color: #e91e63;
}

.btn-outline-pink:hover {
    background-color: #e91e63;
    color: white;
}

.btn-pink {
    background-color: #e91e63;
    color: white;
    border-color: #e91e63;
}

.btn-pink:hover {
    background-color: #d81b60;
    border-color: #d81b60;
}

/* komentarze */

.comment {
    border-left: 3px solid #eb00c3;
    padding: 10px;
    margin: 10px 0;
    background: #292929;
    border-radius: 5px;
}

.comment-author {
    color: #eb00c3;
}

.comment-content {
    margin: 5px 0;
    font-size: 14px;
}

.comment-meta small {
    color: #777;
    font-size: 12px;
}

.comment-reply button {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 13px;
}

.comment-reply button:hover {
    text-decoration: underline;
}

.reply-form {
    margin-top: 10px;
    padding: 10px;
    /* background: #414141;
    border: 1px solid #eb00c3; */
    border-radius: 5px;
}

.reply-form textarea {
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid #cfcfcf;
    border-left: 0;
    background: inherit;
    resize: none;
    width: 100%;
    color: white;
}

.reply-form textarea:focus {
    outline: none;
    border-bottom: 2px solid #ffffff;
}

.reply-form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.button-cancel:hover,
.button-reply:hover {
    cursor: pointer;
    filter: brightness(1.2);
}

.button-cancel {
    color: #eb00c3;
    background: inherit;
    border: none;
    padding: 5px;
}

.button-reply {
    color: white;
    background: #eb00c3;
    border: none;
    border-radius: 1rem;
    padding: 5px 15px;
    font-weight: bold;
}

.replies {
    margin-top: 10px;
}

.tag {
    display: inline-block;
    padding: 5px 15px; /* Odstępy wewnątrz ramki */
    margin: 3px; /* Odstęp między tagami */
    background-color: var(--deep-pink-color); /* Jasny różowy kolor tła */
    color: white; /* Kolor tekstu */
    border-radius: 5px; /* Zaokrąglone rogi */
    border: 2px solid #f39ac1; /* Ciemniejsza różowa ramka */
    font-size: 14px; /* Rozmiar tekstu */
    transition: background-color 0.3s ease, color 0.3s ease; /* Płynna zmiana koloru tła */
    cursor: pointer;
    user-select: none;
}

.tag.model {
    background-color: var(--indigo-color);
}

.tag:hover {
    filter: brightness(1.3); /* Ciemniejszy różowy kolor tła */
}

.tag-container {
    position: relative;
    display: inline-block;
}

.tag-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    border-radius: 5px;
    padding: 3px 5px;
    margin-top: 5px;
    z-index: 10;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.tag-container.is-active .tag-options {
    display: block;
}

.tag-container.is-active .tag {
    background-color: #740064;
    color: #fff;
}

.tag-options span {
    cursor: pointer;
    padding: 5px 8px;
    font-weight: bold;
    font-family: monospace;
    transition: background-color 0.2s;
}

.tag-options span:hover {
    background-color: #aa00aa;
}

#success-alert {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    min-width: 200px;
    text-align: center;
    animation: bounceInDown 0.5s ease-out forwards;
}

/* Animacja: wyjeżdża z góry z odbiciem */
@keyframes bounceInDown {
    0% {
        opacity: 0;
        transform: translate(-50%, -100px);
    }
    80% {
        transform: translate(-50%, 200px);
    }
    100% {
        transform: translate(-50%, 190px);
    }
}

.breadcrumb {
    background-color: #363636 !important;
}

/* do skryptu char-limt.js */
@keyframes shake {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-3px);
    }

    40% {
        transform: translateX(3px);
    }

    60% {
        transform: translateX(-3px);
    }

    80% {
        transform: translateX(3px);
    }

    100% {
        transform: translateX(0);
    }
}

.char-counter {
    display: block;
    text-align: right;
    font-size: 0.875rem;
    margin-top: 4px;
    transition: color 0.2s ease;
}

.char-counter.shake {
    animation: shake 0.4s ease;
    font-weight: bold;
}

.error-code {
    background: linear-gradient(rgba(236, 54, 141, 0.2), rgba(30, 21, 109, 0.6)),
        url("../img/cat-stare.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    max-width: 66%;
    max-height: 33%;
    margin: auto;
    font-weight: 900;
    font-size: 400%;
    padding: 5rem 0;
    color: var(--deep-dark-color);
    text-shadow: 2px 2px 0 var(--pink-color), -2px -2px 0 white, 0 0 10px silver;
    margin-top: 4rem;
}

.error-code[data-code="401"] {
    background: linear-gradient(rgba(236, 54, 141, 0.2), rgba(30, 21, 109, 0.5)),
        url("../img/you-shall-not-pass.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
}

.error-code[data-code="402"] {
    background: linear-gradient(rgba(236, 54, 141, 0.2), rgba(30, 21, 109, 0.5)),
        url("../img/vince-mcmahon-money.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.error-code[data-code="403"] {
    background: linear-gradient(rgba(236, 54, 141, 0.2), rgba(30, 21, 109, 0.5)),
        url("../img/rick-middle-finger.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.error-code[data-code="404"] {
    background: linear-gradient(rgba(236, 54, 141, 0.1), rgba(30, 21, 109, 0.6)),
        url("../img/not-found.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
}

.error-code[data-code="500"] {
    background: linear-gradient(rgba(236, 54, 141, 0.2), rgba(30, 21, 109, 0.5)),
        url("../img/this-is-fine.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom;
}

/* Drag-n-Drop */

#drop-zone {
    border: 2px dashed rgb(var(--bs-secondary-rgb));
    border-radius: 12px;
    width: 100%;
    height: 270px;
    text-align: center;
    padding: 20px;
    margin: 20px auto;
}

#drop-zone.dragover {
    border-color: #fff;
}

/* Upewnienie się, że fa-stack ma rozmiar 1x */
.fa-stack.fa-1x {
    width: 1.3em;
    height: 1.3em;
    line-height: 1.3em;
}

/* Pozycjonowanie badge'a (tarczy) w prawym dolnym rogu */
.admin-badge {
    position: absolute;
    bottom: -8px;
    left: 4px !important;
    font-size: 0.5em;
    color: #007bff;
}

.fa-stack .fa-trash-alt {
    font-size: 1em; /* Zapewnia standardowy rozmiar dla ikon w stosie */
}

/* ageModal */

.btn-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 25px;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s, background-color 0.2s;
    font-weight: 500;
}

/* ukryty checkbox */
.btn-toggle input[type="checkbox"] {
    display: none;
}

/* ptaszek po lewej */
.btn-toggle .checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: border-color 0.2s, background-color 0.2s;
}

/* pokaż ptaszek, gdy checkbox zaznaczony */
.btn-toggle input[type="checkbox"]:checked + .checkmark {
    border-color: #ffc0cb;
    background-color: #ffc0cb;
}
