:root {
    --font-color-body: #d1cdbc;
    --font-color-heading: #dd9f38;
    --font-color-heading-alt: #bca783;
    --body-background-color: #140e0b;
    --light-bg-color: #c3c1b3;
    --light-text-color: #26201b;
    --light-heading-color: #3d2e1e;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
}

body {
    background-color: var(--body-background-color);
    color: var(--font-color-body);
    font-family: 'Spectral', 'Noto Serif', serif;
    font-size: 1.05rem;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==========================================================================
   DEKLARACJA AUTORSKIEJ CZCIONKI IKON SOULFRAME
   ========================================================================== */
@font-face {
    font-family: 'de-soulframe';
    src: url('fonts/de-soulframe.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.sf-icon::before {
    font-family: 'de-soulframe' !important;
    speak: never;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: #171009;
}

.sf-icon-facebook::before  { content: "\e913"; }
.sf-icon-youtube::before   { content: "\e92b"; }
.sf-icon-instagram::before { content: "\e916"; }
.sf-icon-discord::before   { content: "\e90b"; }

/* ==========================================================================
   NAWIGACJA Z DROPDOWNEM
   ========================================================================== */
#page-header {
    background-color: #201b13 !important;
    left: 0 !important;
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    height: 70px !important;
    min-height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 0 0 40px !important;
    border-bottom: 1px solid rgba(221, 159, 56, 0.25) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}

#page-header nav {
    height: 100% !important;
    display: flex !important;
    align-items: stretch !important;
}

#page-header::before {
    background: 50% / 480px repeat url('https://soulframe.pl/img/floral-pattern.png');
    bottom: 0;
    content: "";
    left: 0;
    opacity: .04;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
}

.header-logo-link {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo-img {
    height: 42px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.8));
}

.header-nav-menu {
    position: relative;
    z-index: 2;
    display: flex !important;
    align-items: stretch !important;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100% !important;
}

.header-nav-menu > li:not(.nav-dropdown-container) {
    display: flex;
    align-items: center; /* Wycentrowanie zwykłych linków w pionie */
}

.header-nav-menu a {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #d1cdbc;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.header-nav-menu a:hover {
    color: #dd9f38;
}

.header-nav-menu a.nav-discord {
    color: #dd9f38;
}

.nav-dropdown-container {
    align-self: stretch !important;
    display: flex !important;
    align-items: stretch !important;
    position: relative;
    height: 100% !important;
    margin-left: 10px;
    border-left: 1px solid hsla(44, 50%, 69%, .43) !important;
}

.dropdown-trigger {
    align-items: center !important;
    background-color: hsla(44, 50%, 69%, .07) !important;
    border: none !important;
    color: #d8c38a !important;
    display: flex !important;
    flex-direction: row !important;
    font-family: 'Cinzel', serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    height: 100% !important;
    justify-content: center !important;
    padding: 0 32px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color .1s ease-out, background-color .1s ease-out;
}

.dropdown-trigger:hover,
.nav-dropdown-container:hover .dropdown-trigger {
    background-color: hsla(44, 50%, 69%, .15) !important;
    color: #ffffff !important;
}

.dropdown-menu {
    align-items: stretch;
    background-color: #171009;
    border: 1px solid rgba(221, 159, 56, 0.25);
    border-top: none;
    border-radius: 0 0 3px 3px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    left: 50%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    top: 100%;
    transform: translateX(-50%);
    transition: transform .2s cubic-bezier(.4, 0, .2, 1), max-height .25s ease, opacity .2s ease;
    width: 228px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    pointer-events: none;
}

.nav-dropdown-container:hover .dropdown-menu {
    max-height: 260px;
    opacity: 1;
    pointer-events: auto;
}

.dropdown-menu a {
    padding: 12px 18px;
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    color: #d1cdbc;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease, color 0.2s ease;
    display: block;
    text-align: center;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: rgba(221, 159, 56, 0.15);
    color: #dd9f38;
}

/* ==========================================================================
   WIDEO TŁA & HERO
   ========================================================================== */
.video-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35) contrast(1.1);
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(20, 14, 11, 0.5) 0%, rgba(20, 14, 11, 0.95) 100%);
    z-index: -1;
    pointer-events: none;
}

.hero-header {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 70px;
}

.header-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.header-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.1);
}

.header-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(20, 14, 11, 0.3) 0%, rgba(20, 14, 11, 0.85) 100%);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 960px;
    width: 100%;
    padding: 40px 20px;
    text-align: center;
}

.site-badge {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 4px;
    color: var(--font-color-heading-alt);
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.site-main-logo {
    max-width: 480px;
    width: 90%;
    height: auto;
    margin: 0 auto 15px auto;
    display: block;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.85));
}

.subtitle {
    font-family: 'Spectral', serif;
    color: var(--font-color-body);
    font-size: 1.2rem;
    font-style: italic;
    max-width: 650px;
    margin: 0 auto 30px auto;
}

.hero-box {
    background: rgba(30, 22, 17, 0.8) url('https://www.soulframe.pl/img/parchment-background.png') repeat;
    background-blend-mode: overlay;
    border: 1px solid rgba(221, 159, 56, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    margin-top: 20px;
}

.hero-box::before {
    content: "";
    position: absolute;
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    border: 1px solid rgba(188, 167, 131, 0.2);
    pointer-events: none;
}

.hero-text {
    font-size: 1.2rem;
    color: #ececec;
    margin-bottom: 35px;
}

.decorated {
    display: inline-block;
    position: relative;
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #140e0b;
    background: linear-gradient(90deg, #dcbc55, #d79a43);
    padding: 14px 38px;
    text-decoration: none;
    border: 1px solid #dcbc55;
    transition: all 0.3s ease;
    margin: 0 45px;
}

.decorated::before {
    content: "";
    position: absolute;
    left: -45px;
    top: -1px;
    bottom: -1px;
    width: 40px;
    background: url('https://www.soulframe.pl/img/button-primary-end-cap.svg') no-repeat center left;
    background-size: contain;
}

.decorated::after {
    content: "";
    position: absolute;
    right: -45px;
    top: -1px;
    bottom: -1px;
    width: 40px;
    background: url('https://www.soulframe.pl/img/button-primary-end-cap.svg') no-repeat center right;
    background-size: contain;
    transform: scaleX(-1);
}

.decorated:hover {
    background: linear-gradient(90deg, #ffffff, #dcbc55);
    box-shadow: 0 0 20px rgba(220, 188, 85, 0.5);
    color: #000;
}

/* ==========================================================================
   GŁÓWNY KONTENER TREŚCI
   ========================================================================== */
.main-content-wrapper {
    background-color: var(--light-bg-color);
    color: var(--light-text-color);
    position: relative;
    padding-top: 50px;
    padding-bottom: 60px;
    box-shadow: inset 0 25px 25px -12px rgba(0, 0, 0, 0.65);
}

.main-content-wrapper::before {
    content: "";
    background-image: url('https://soulframe.pl/img/circular-glyph.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    left: 50%;
    opacity: .09;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

@media (min-width: 1280px) {
    .main-content-wrapper::after {
        background-image: url('https://soulframe.pl/img/celtic-1.png');
        background-repeat: repeat-y;
        background-size: 130px;
        bottom: 0;
        content: "";
        height: auto;
        left: 52px;
        opacity: .35;
        pointer-events: none;
        position: absolute;
        right: 0;
        top: 0;
        width: auto;
        z-index: 0;
    }
}

.gold-top-bar {
    position: absolute;
    top: -17px;
    left: 0;
    right: 0;
    height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    z-index: 10;
    overflow: hidden;
    pointer-events: none;
}

.gold-leaves {
    height: auto;
    width: auto;
    flex-shrink: 0;
}

.gold-lines {
    flex-grow: 0;
    width: 500px;
    max-width: 500px;
    height: 50px;
    background: url('https://www.soulframe.pl/img/gold-double-lines.png') repeat-x top right;
    background-size: auto 50px;
    margin-top: -11px;
    margin-right: 75px;
    margin-left: auto;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: 'Cinzel', serif;
    color: var(--light-heading-color);
    font-size: 1.8rem;
    text-align: center;
    letter-spacing: 2px;
    margin-top: 40px;
    margin-bottom: 25px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.section-title::before,
.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(61, 46, 30, 0.4), transparent);
}

.intro-box {
    background: rgba(235, 233, 222, 0.65);
    border-left: 3px solid #8c6a3f;
    padding: 20px 25px;
    margin-bottom: 30px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #32281e;
}

.lore-box {
    background: rgba(235, 233, 222, 0.75);
    border: 1px solid rgba(130, 105, 75, 0.3);
    padding: 35px 30px;
    margin-bottom: 40px;
    text-align: center;
    border-radius: 4px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.05);
}

.lore-poem {
    font-style: italic;
    font-size: 1.08rem;
    line-height: 1.6;
    color: #32281e;
    max-width: 750px;
    margin: 0 auto 20px auto;
}

.lore-highlight {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #5a422a;
    letter-spacing: 1px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background: rgba(240, 238, 229, 0.88);
    border: 1px solid rgba(130, 105, 75, 0.3);
    padding: 30px 25px;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 4px;
}

.card:hover {
    border-color: #8c6a3f;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.card h3 {
    font-family: 'Cinzel', serif;
    color: var(--light-heading-color);
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 15px;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(130, 105, 75, 0.25);
    padding-bottom: 8px;
}

.card p {
    font-size: 0.98rem;
    color: var(--light-text-color);
    margin: 0;
}

code {
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(140, 106, 63, 0.4);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    color: #5a422a;
}

.rules-list {
    list-style: none;
    padding: 0;
    margin-top: 25px;
}

.rules-list li {
    background: rgba(240, 238, 229, 0.92);
    border-left: 3px solid #8c6a3f;
    border-top: 1px solid rgba(130, 105, 75, 0.2);
    border-right: 1px solid rgba(130, 105, 75, 0.2);
    border-bottom: 1px solid rgba(130, 105, 75, 0.2);
    padding: 18px 20px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--light-text-color);
}

.rules-list strong {
    font-family: 'Cinzel', serif;
    color: var(--light-heading-color);
}

/* ==========================================================================
   SEKCJA PARTNERZY
   ========================================================================== */
.partners-section {
    margin-top: 0;
    text-align: center;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 30px 45px;
    margin-top: 35px;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--light-text-color);
    transition: transform 0.25s ease;
    width: 140px;
}

.partner-item:hover {
    transform: translateY(-5px);
}

.partner-img-wrapper {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.partner-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
    border-radius: 27px;
}

.partner-name {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--light-heading-color);
    text-align: center;
}

/* ==========================================================================
   BANER "DOŁĄCZ DO NAS" Z LISTKAMI LEAF
   ========================================================================== */
.join-banner-section {
    position: relative;
    background: #140e0b url('https://soulframe.pl/img/signup.webp') no-repeat center center;
    background-size: cover;
    padding: 90px 20px;
    text-align: center;
    color: #e5e0d3;
    border-top: 1px solid rgba(221, 159, 56, 0.3);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.85);
}

.join-banner-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(14, 10, 8, 0.45) 0%, rgba(14, 10, 8, 0.85) 100%);
    z-index: 1;
}

.join-banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.join-banner-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: #bca783;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.join-banner-title {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: #ffffff;
    letter-spacing: 2px;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.join-banner-title > span {
    position: relative;
    display: inline-block;
}

@media (min-width: 768px) {
    .join-banner-title > span::before,
    .join-banner-title > span::after {
        aspect-ratio: 1 / 1;
        background: 50% / contain no-repeat url('https://soulframe.pl/img/title-leaf.svg');
        content: "";
        position: absolute;
        top: 50%;
        width: 32px;
        z-index: 1;
    }

    .join-banner-title > span::before {
        right: 100%;
        margin-right: 16px;
        transform: translateY(-50%);
    }

    .join-banner-title > span::after {
        left: 100%;
        margin-left: 16px;
        transform: translateY(-50%) scaleX(-1);
    }
}

.join-banner-desc {
    font-family: 'Spectral', serif;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #d1cdbc;
    margin: 0 auto 35px auto;
    max-width: 680px;
}

/* ==========================================================================
   STOPKA I IKONY SPOŁECZNOŚCIOWE
   ========================================================================== */
#sub-footer {
    background-color: #140e0b;
    padding: 0px 20px 30px 20px;
		margin-top: -17px;
    text-align: center;
}

.footer-divider-container {
    position: relative;
    text-align: center;
    margin-bottom: 35px;
}

.footer-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(188, 167, 131, 0.4), transparent);
    z-index: 1;
}

.footer-vines {
    position: relative;
    z-index: 2;
    height: 32px;
    width: auto;
    max-width: 90%;
    display: inline-block;
    vertical-align: middle;
}

#sub-footer .social {
    margin-bottom: 30px;
}

#sub-footer .social ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

#sub-footer .social ul li:nth-child(1n) a::before {
    transform: rotate(0deg);
}

#sub-footer .social ul li:nth-child(2n) a::before {
    transform: rotate(90deg);
}

#sub-footer .social ul li:nth-child(4n) a::before {
    transform: rotate(270deg);
}

#sub-footer .social a {
    color: #171009;
    display: block;
    height: 44px;
    width: 44px;
    position: relative;
    text-decoration: none;
    transition: transform 0.15s ease;
}

#sub-footer .social a:hover {
    transform: translateY(-2px);
}

#sub-footer .social a::before,
#sub-footer .social a::after {
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 0;
}

#sub-footer .social a::before {
    background: radial-gradient(ellipse, #9e9678 30%, #8a8263 90%);
    -webkit-mask-image: url('https://soulframe.pl/img/torn-stamp-mask.png');
    mask-image: url('https://soulframe.pl/img/torn-stamp-mask.png');
    -webkit-mask-size: cover;
    mask-size: cover;
    transition: all .1s ease-out;
}

#sub-footer .social a::after {
    border: 1px solid #171009;
    margin: 4px;
    pointer-events: none;
    z-index: 3;
}

footer p {
    color: #6a5a48;
    font-size: 0.85rem;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    margin: 0;
}

@media (max-width: 992px) {
    #page-header { padding: 0 20px !important; }
    .header-nav-menu { gap: 15px; }
    .header-nav-menu a { font-size: 0.75rem; }
    .dropdown-trigger { padding: 0 15px; font-size: 0.85rem; }
    .join-banner-title { font-size: 1.7rem; }
}