/* =============================================
   RESPONSIVE STYLES - Mobile First Approach
   Dodaj ten plik po głównym pliku CSS
   ============================================= */

/* =============================================
   HAMBURGER MENU
   ============================================= */

/* Przycisk hamburgera - domyślnie ukryty na desktop */
.hamburger-btn {
  display: none;
  background: none;
  border: 2px solid #d9ccb2;
  border-radius: 5px;
  cursor: pointer;
  padding: 6px 8px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  position: relative;
  z-index: 200002;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #d9ccb2;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Animacja X przy otwartym menu */
.hamburger-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay przyciemniający tło */

@media (max-width: 992px) {

  .numberacc{
    width: 100%;
  }
  .numberacc ul{
    width: 100%;
  }
  /* Pokaż hamburger */
  .hamburger-btn {
    display: flex;
  }

  /* Header row: logo + hamburger obok siebie */
  .headerBotInner {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }

  #logo {
    margin: 0 !important;
  }

  /* Schowaj nav - wysuwa się z prawej */
  .mainNavRight {
    position: fixed;
    top: 0;
    right: -1500px;
    width: 280px;
    height: 100%;
    background: #2a3125;
    z-index: 200001;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.5);
    margin-top: 0 !important;
    padding-top: 70px;
  }

  .mainNavRight.is-open {
    right: 0;
  }

  .mainNavRight .navbar-inner {
    overflow: visible;
  }

  /* Lista linków w szufladzie */
  .mainNavRight .nav {
    display: block !important;
    padding: 0;
    width: 100%;
  }

  .mainNavRight .nav > li {
    float: none !important;
    display: block !important;
    height: auto !important;
    width: 100%;
    border-bottom: 1px solid #1e0a2e;
  }

  .mainNavRight .nav > li > a {
    display: block !important;
    width: 100%;
    font-size: 13px !important;
    margin: 0 !important;
    padding: 14px 20px !important;
    border-radius: 0 !important;
    color: #d9ccb2 !important;
    text-transform: uppercase;
    font-weight: 600;
  }

  .mainNavRight .nav > li > a.login,
  .mainNavRight .nav > li > a.signup {
    margin: 10px 15px !important;
    width: calc(100% - 30px) !important;
    border-radius: 6px !important;
    text-align: center;
    display: block !important;
  }

  /* Dropdown w szufladzie */
  .mainNavRight .nav > li.dropdown .dropdown-menu {
    position: relative !important;
    display: none;
    background: #21241f;
    border: 0;
    box-shadow: none;
    width: 100%;
    border-radius: 0;
    padding: 0;
    min-width: unset !important;
  }

  .mainNavRight .nav > li.dropdown.open .dropdown-menu {
    display: block;
  }

  .mainNavRight .nav > li.dropdown .dropdown-menu > li > a {
    padding: 11px 30px;
    font-size: 12px;
    color: #d9ccb2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1.5);
    border-bottom: 1px solid #2a1040;
  }

  .mainNavRight .nav > li.dropdown .dropdown-menu > li > a:hover {
    color: #ffffff !important;
    background-color: #2f3d30;
  }

  @media (max-width: 992px) {
    .headerTopContainer, .headerBotContainer, .bannerContainer, .formContainer, .contentContainer, .advertiseContainer, .footerContainer, .main-container {
        width: 100% !important;
        padding: 0 10px;
        box-sizing: border-box;
    }
}
}

/* ---- Tablet (max 1200px) ---- */
@media (max-width: 1200px) {
  .headerBotInner,
  .main-container {
    width: 100% !important;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .banner-middle li {
    width: 320px;
  }

  .banner-middle li p {
    width: 200px;
  }

  .numberacc ul li {
    width: 320px;
  }

  .top-account li {
    width: 320px;
  }
}

/* ---- Małe tablety i duże telefony (max 992px) ---- */
@media (max-width: 992px) {

  /* === HEADER === */
  .headerBotContainer {
    height: auto !important;
    padding: 0px 0;
  }

  .headerBotInner {
    width: 100% !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    box-sizing: border-box;
  }

  #logo {
    float: none;
    display: block;
    width: 260px;
    height: 60px;
    margin-left: 60px !important;
  }

  .mainNavRight {
    float: none;
    width: 100%;
    margin-top: 8px;
  }

  .mainNavRight .nav > li > a {
    font-size: 12px;
    margin-left: 5px;
    padding: 8px 4px;
    margin-top: 10px;
  }

  /* === MAIN CONTAINER === */
  .main-container {
    width: 100% !important;
    padding: 0 10px;
    box-sizing: border-box;
  }

  /* === BANNER === */
  .banner-middle {
    padding: 30px 15px;
  }

  .banner-middle h4 {
    font-size: 18px;
    line-height: 28px;
  }

  .banner-middle h2 {
    font-size: 22px;
    line-height: 32px;
  }

  .banner-middle li {
    width: 100%;
    display: block;
    margin-bottom: 10px;
  }

  .banner-middle li p {
    width: calc(100% - 110px);
  }

  /* === ACCOUNT TOP === */
  .top-account li {
    width: 100%;
    display: block;
    margin-bottom: 5px;
  }

  /* === NUMBERS / STATS === */
  .numberacc ul li {
    width: 100%;
  }

  .accTop2 .numberacc ul li {
    width: 100%;
  }

  /* === BOTTOM STATS === */
  .bottom-stats .col {
    width: 100%;
    float: none;
    margin-bottom: 10px;
  }

  .bottom-stats .col2 {
    float: none;
  }

  /* === FEATURES === */
  .features-container .feature {
    width: calc(50% - 20px);
    margin: 5px;
  }

  /* === FOOTER === */
  .footerInner {
    padding: 20px 15px;
  }

  .footer1, .footer2, .footer3 {
    width: 100%;
    float: none;
    margin-left: 0;
    margin-bottom: 15px;
  }
  .ad-block{
    width: calc(50% - 10px);
  }
}

/* ---- Telefony (max 768px) ---- */
@media (max-width: 768px) {

  /* === HEADER / NAWIGACJA === */
  .headerBotInner {
    flex-direction: column;
    align-items: flex-start;
  }

  #logo {
    margin: 5px auto;
    display: block;
    float: none;
  }

  .mainNavRight {
    width: 100%;
  }

  .mainNavRight .navbar-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mainNavRight .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 5px 0;
  }

  .mainNavRight .nav > li {
    float: none;
    height: auto;
  }

  .mainNavRight .nav > li > a {
    font-size: 11px;
    margin: 3px 2px;
    margin-top: 3px;
    padding: 7px 6px;
  }

  .mainNavRight .nav > li > a.login,
  .mainNavRight .nav > li > a.signup {
    padding: 7px 10px;
    border-radius: 15px;
  }

  /* === FLOTATOR (member toolbar) === */
  .flotator .member_toolbar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .flotator .member_toolbar .container {
    width: auto !important;
    min-width: 700px;
  }

  /* === PAGE TITLE === */
  .page-title {
    text-align: left;
  }

  .page-title h2 {
    float: none;
    display: block;
    margin-bottom: 8px;
  }

  .title-right {
    float: none;
    text-align: left;
  }

  .title-right ul li {
    width: 100%;
    margin-bottom: 5px;
    box-sizing: border-box;
  }

  /* === TOP ACCOUNT === */
  .top-account ul {
    display: block;
  }

  .top-account li {
    width: 100% !important;
    display: block;
    margin-bottom: 5px;
    box-sizing: border-box;
  }

  /* === ACCTOP / NUMBERACC === */
  .accTop, .accTop2 {
    overflow: visible;
  }

  .numberacc {
    width: 100%;
    display: block;
  }

  .numberacc ul {
    width: 100%;
    display: block;
    padding: 0;
  }

  .numberacc ul li {
    width: 100% !important;
    float: none !important;
    display: block;
    margin-right: 0;
    margin-bottom: 10px;
    box-sizing: border-box;
  }

  .accTop2 .numberacc ul li {
    width: 100% !important;
    min-height: 210px;
  }

  /* === BOTTOM STATS === */
  .bottom-stats {
    display: block;
  }

  .bottom-stats .col,
  .bottom-stats .col2 {
    width: 100%;
    float: none;
    display: block;
    margin-bottom: 10px;
    box-sizing: border-box;
    font-size: 10px;
  }

  .bottom-stats .col span {
    width: auto;
    min-width: 100px;
  }

  /* === BANNER === */
  .bannerContainer {
    width: 100%;
  }

  .banner-middle {
    padding: 20px 10px;
  }

  .banner-middle h4 {
    font-size: 15px;
    line-height: 24px;
  }

  .banner-middle h2 {
    font-size: 18px;
    line-height: 26px;
    margin-bottom: 20px;
  }

  .banner-middle ul {
    display: block;
  }

  .banner-middle li {
    width: 100%;
    display: block;
    margin-bottom: 10px;
  }

  .banner-middle li .icon {
    width: 70px;
    height: 70px;
    padding-top: 15px;
  }

  .banner-middle li p {
    width: calc(100% - 80px);
    font-size: 13px;
    padding: 10px;
  }

  .banner-middle a.banner-signup {
    font-size: 16px;
    padding: 12px 25px;
    margin-top: 20px;
  }

  /* === FEATURES === */
  .features-container {
    display: block;
  }

  .features-container .feature {
    width: 100%;
    display: block;
    margin: 5px 0;
    box-sizing: border-box;
  }

  .features-container .feature2 {
    margin: 5px 0;
  }

  /* === ACCOUNT MENU === */
  .account-menu .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 8px;
  }

  .account-menu .nav > li {
    margin: 4px 3px;
    display: inline-block;
  }

  .account-menu .nav > li a {
    padding: 7px 12px;
    font-size: 11px;
  }

  /* === REGISTER PAGE === */
  .Register_Page {
    width: 100%;
    box-sizing: border-box;
    padding: 20px 15px;
    margin: 10px auto;
    border-radius: 0;
  }

  .Register_Page form input {
    width: 100%;
    float: none;
    margin-bottom: 15px;
    box-sizing: border-box;
  }

  .Register_Page form input:nth-child(2),
  .Register_Page form input:nth-child(4),
  .Register_Page form input:nth-child(6) {
    float: none;
  }

  .RegisterCap {
    width: 100%;
    box-sizing: border-box;
  }

  .footerRegister input[type="submit"] {
    float: none;
    width: 100%;
    margin-top: 10px;
  }

  /* === LOGIN PAGE === */
  .Login_Page {
    width: 100%;
    box-sizing: border-box;
    padding: 25px 15px;
    margin: 20px auto;
    border-radius: 0;
  }

  /* === PURCHASE / ADD FUNDS === */
  .add-funds,
  .purchase-block {
    width: 100%;
    box-sizing: border-box;
    margin: 10px auto;
  }

  .form-left {
    width: 100%;
    float: none;
    box-sizing: border-box;
  }

  .form-right {
    float: none;
    width: 100%;
  }

  /* === BENEFITS === */
  .benefits-container ul li {
    width: 100%;
    float: none;
    margin-right: 0;
    box-sizing: border-box;
  }

  /* === PAYMENT BAR === */
  .payment-inner {
    width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* === FORUM === */
  .forumTitle {
    width: 100%;
    float: none;
  }

  .forumStatis {
    float: none;
    width: auto;
    display: inline-block;
  }

  .forumLast {
    float: none;
    width: 100%;
    padding-left: 0;
  }

  /* === TABLE === */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-container table {
    min-width: 500px;
  }

  /* === STATS MIDDLE === */
  .stats-middle {
    padding: 10px 10px 15px;
  }

  .stats-middle h1 {
    font-size: 22px;
  }

  /* === SUBPAGE === */
  .sub-page-backgroundInner {
    padding: 0 10px;
    box-sizing: border-box;
  }

  .site_title {
    font-size: 24px;
    line-height: 70px;
  }

  /* === ACCOUNT CONTENT === */
  .account-content {
    padding: 10px 5px;
  }

  /* === RIBBON === */
  .ribbon {
    display: none;
  }

  /* === FOOTER === */
  .footerContainer {
    height: auto;
    margin-top: 0;
  }

  .footerInner {
    padding: 20px 15px;
    text-align: center;
  }

  .footer1, .footer2, .footer3 {
    width: 100%;
    float: none;
    margin: 0 0 15px 0;
    text-align: center;
  }

  .numberacc ul li a{
    padding: 6px 7px !important;
    font-size: 11px !important;
  }

  .numberacc ul li.balanceLast p.earnings-p{
    font-size: 12px !important;
  }

  /* === OVERRIDE BROKEN 1000px MEDIA QUERY === */
  .headerTopContainer,
  .headerBotContainer,
  .bannerContainer,
  .formContainer,
  .contentContainer,
  .advertiseContainer,
  .footerContainer,
  .main-container {
    width: 100% !important;
  }

  .headerTopInner,
  .headerBotInner,
  .bannerInner,
  .formInner,
  .contentInner,
  .advertiseInner,
  .footerInner,
  .main-container {
    margin: 0 !important;
    width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box !important;
  }
  .ad-block{
    width: 100%;
  }
}

/* ---- Bardzo małe telefony (max 480px) ---- */
@media (max-width: 480px) {

  body {
    font-size: 13px;
  }

  .mainNavRight .nav > li > a {
    font-size: 10px;
    margin: 2px 1px;
    padding: 6px 5px;
  }

  .banner-middle h4 {
    font-size: 13px;
    line-height: 20px;
  }

  .banner-middle h2 {
    font-size: 15px;
    line-height: 22px;
  }

  .banner-middle li .icon {
    width: 55px;
    height: 55px;
    padding-top: 10px;
  }

  .banner-middle li p {
    font-size: 12px;
    width: calc(100% - 65px);
  }

  .page-title h2 {
    font-size: 15px;
  }

  .title-right ul li {
    font-size: 12px;
  }

  .top-account li .icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
    padding-top: 17px;
  }

  .top-account li .text {
    padding-left: 8px;
    padding-top: 8px;
  }

  .top-account ul li h2 {
    font-size: 12px;
  }

  .top-account ul li h6 {
    font-size: 10px;
  }

  .numberacc ul li p {
    font-size: 18px;
  }

  .account-menu .nav > li a {
    font-size: 10px;
    padding: 6px 8px;
  }

  .site_title {
    font-size: 18px;
    line-height: 50px;
  }

  /* Iframe reklamy - skalowanie */
  iframe {
    max-width: 100% !important;
    height: auto !important;
  }

  .bottom-stats .col span {
    width: 120px;
    font-size: 12px;
  }

  .stats-middle h1 {
    font-size: 18px;
  }

  .accTop2 .numberacc ul li h4 {
    font-size: 13px;
  }

  .numberacc ul li p.description {
    font-size: 12px;
  }
  .headerBotContainer{
    background-position-x: -40px;
  }
}
