/* ==========================================================================
   Variables
   ========================================================================== */
:root {
    /* Colors */
    --primary-color: #2D6A4F;
    --primary-light: #40916C;
    --secondary-color: #FFB100;
    --text-color: #1F2937;
    --background-color: #F9FAFB;
    --card-background: #ffffff;
    --border-color: #E5E7EB;
    --hover-gold: #F59E0B;
    --nav-gradient-start: #24543C;
    --nav-gradient-end: #2D6A4F;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

p{
    margin-bottom: 20px;
}
/* ==========================================================================
   Layout & Container
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h2 {
    font-size: 1.65rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}
table{
        margin-bottom: 25px;
}

.top-brokers {
            margin-top: 2rem;
}


/* warning */
.warning {
   display: flex;
   align-items: center;  /* Změněno z 'start' na 'center' pro vertikální centrování */
   gap: 16px;
   padding: 16px;
   border-radius: 8px;
   background: #fffcf2;
   border: 1px solid #fff3c4;
   margin: 20px 0;
}

.warning::before {
   content: 'i';
   display: flex;
   align-items: center;
   justify-content: center;
   width: 20px;
   height: 20px;
   border-radius: 50%;
   background: #fff3c4;
   color: #806a00;
   font-style: italic;
   font-family: serif;
   font-size: 14px;
   flex-shrink: 0;
   line-height: 1; /* Pro lepší vertikální centrování 'i' */
   padding-bottom: 1px; /* Jemné doladění centrování */
}

.warning p {
   color: #403400; /* Tmavší text */
   margin: 0;
}

/* call to action */

.cta-container {
   margin: 30px 0;
   display: flex;
   gap: 20px;
}

.cta-button {
   padding: 14px 28px;
   text-align: center;
   text-decoration: none;
   font-weight: bold;
   border-radius: 4px;
   transition: all 0.3s ease;
}

.cta-button {
   background-color: #00a9e0;
   color: white;
   border: none;
}

.cta-secondary {
   background-color: white;
   color: #00a9e0;
   border: 2px solid #00a9e0;
}

.cta-button:hover {
   opacity: 0.9;
   transform: translateY(-2px);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar-wrapper {
    background: linear-gradient(to right, var(--nav-gradient-start), var(--nav-gradient-end));
    width: 100%;
    border-bottom: 1px solid #416a55;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.logo {
    order: 1;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s ease;
    padding-top: 14px;
}
.logo img{
    width: 200px;
}
.logo:hover {
    color: var(--hover-gold);
}

/* Mobile Menu Button */
.mobile-menu-button {
    order: 2;
    display: none;
    background: none;
    border: none;
    color: var(--secondary-color);
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1001;
    font-size: 1.5rem;
}

.mobile-menu-button .menu-icon,
.mobile-menu-button .close-icon {
    transition: opacity 0.3s ease;
}

/* Navigation Menu */
.nav-menu {
    order: 3;
    display: flex;
    gap: 2rem;
    align-items: center;
   
    padding-bottom: 16px;
    padding-top: 13px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

/* ==========================================================================
   Dropdown Menu
   ========================================================================== */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 265px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 1rem;
    z-index: 1000;
    margin-top: 0.5rem;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.dropdown .dropdown-content a {
    display: block;
    padding: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.dropdown .dropdown-content a:hover {
    color: var(--hover-gold);
}

.dropdown .fa-chevron-down {
    transition: transform 0.3s ease;
}

.dropdown-content .fa-fw {
    padding-right: 6px;
}

/* ==========================================================================
   Grid Layouts
   ========================================================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.brokers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

/* ==========================================================================
   Cards
   ========================================================================== */
/* Category Cards */
.category-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--hover-gold);
}

/* Category & Trust Icons */
.category-icon, .trust-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--secondary-color), var(--hover-gold));
    color: var(--nav-gradient-start);
    font-size: 1.25rem;
}

/* Broker Cards */
.broker-card {
    background: var(--card-background);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.broker-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.broker-logo {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--background-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-color);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.broker-logo img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 3px;
}

.broker-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-top: 0.5rem;
}

.broker-features {
    margin: 1rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feature-item i {
    color: var(--primary-light);
}

/* Card Content Styles */
.card-content {
    font-weight: 600;
    margin-bottom: 2px;
}

.card-description {
    font-size: 0.875rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Pros & Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.pros, .cons {
    background: var(--background-color);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ebebeb;
}

.pros h4, .cons h4 {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pros h4 { color: #059669; }
.cons h4 { color: #DC2626; }

.pros ul, .cons ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pros li, .cons li {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pros li::before {
    content: "✓";
    color: #059669;
}

.cons li::before {
    content: "×";
    color: #DC2626;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.broker-card-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.broker-button {
    flex: 1;
    padding: 0.5rem;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.broker-button-review {
    background: var(--primary-color);
    color: white;
}

.broker-button-review:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.broker-button-visit {
    background: var(--secondary-color);
    color: var(--nav-gradient-start);
}

.broker-button-visit:hover {
    background: var(--hover-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary-color);
    color: var(--nav-gradient-start);
    padding: 1.25rem 3rem;
    border-radius: 13px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background: var(--hover-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--nav-gradient-start), var(--nav-gradient-end));
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.cta-text {
    font-size: 2.5rem;
    font-weight: 500;
    max-width: 800px;
    line-height: 1.3;
    margin: 0 auto;
}

/* ==========================================================================
   Tables
   ========================================================================== */
.stickyTable {
    position: relative;
    max-width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    border-bottom: 0;
}

.stickyTable::-webkit-scrollbar {
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.stickyTable::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

.stickyTable::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.stickyTable table {
    width: 100%;
    min-width: 800px;
    border-spacing: 0;
    border-collapse: collapse;
}

.stickyTable th, 
.stickyTable td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.stickyTable th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.stickyTable tr td {
    background-color: white;
}

.stickyTable tr:nth-child(odd) td {
    background-color: var(--background-color);
}

.stickyTable th:first-child,
.stickyTable td:first-child {
    position: sticky;
    left: 0;
}

.stickyTable th:first-child {
    background-color: var(--primary-color);
    z-index: 2;
    border-top-left-radius: 12px;
}

.stickyTable th:last-child {
    border-top-right-radius: 12px;
}

.stickyTable td:first-child {
    z-index: 1;
}

.stickyTable tr:nth-child(odd) td:first-child {
    background-color: var(--background-color);
}

.stickyTable tr:nth-child(even) td:first-child {
    background-color: white;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: linear-gradient(to right, var(--nav-gradient-start), var(--nav-gradient-end));
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.footer-left {
    display: flex;
    gap: 4rem;
}

.footer h3 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--hover-gold);
}


.footer-disclosure {
    max-width: 500px;
}

.footer-disclosure h4 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.footer-disclosure p {
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links a {
    color: white;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    opacity: 1;
}

.footer-bottom {
    max-width: 1200px;
    margin: 1rem auto 0;
    padding: 1rem 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ==========================================================================
   Overlay
   ========================================================================== */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.overlay.active {
    display: block;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (min-width: 769px) {
    
       .stickyTable table{
        margin-bottom: 0;
    }
    .stickyTable tr:last-child td{
        border-bottom: 0;
    }
    .stickyTable {
    border-bottom: 1px solid var(--border-color);
}
    .nav-link:hover {
        color: var(--hover-gold);
    }
    
    .dropdown:hover .dropdown-content {
        display: block;
    }
    
    .dropdown:hover .fa-chevron-down {
        transform: rotate(180deg);
    }
}

@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
    }
    
    .footer-disclosure {
        max-width: none;
    }
}

@media (max-width: 768px) {
    
    
    .logo {
 float: left;
    width: 80%;
}

.logo img {
   
    max-width: 100%;
}
    .stickyTable th:first-child, .stickyTable td:first-child{
       max-width: 40vw; /* max 40% viewpointu */
    }
    .mobile-menu-button {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--nav-gradient-start);
        padding: 2rem;
        flex-direction: column;
        align-items: flex-start;
        transition: transform 0.3s ease;
        transform: translateX(-100%);
        z-index: 1000;
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
        transform: translateX(0);
    }
    
    .nav-menu > * {
        margin: 4px 0;
        width: 100%;
    }
    
    .dropdown-content {
        position: static;
        background: transparent;
        box-shadow: none;
        padding-left: 1rem;
    }

    .nav-menu .dropdown-content a {
        color: white;
        opacity: 0.8;
        padding: 1rem 0;
        margin-left: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .dropdown.active .fa-chevron-down {
        transform: rotate(180deg);
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .nav-menu .dropdown-content a:hover {
        color: var(--secondary-color);
    }
}

@media (max-width: 576px) {
    .footer-left {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
    }
    
    .footer-section {
        flex: 0 1 calc(50% - 1rem);
    }
    
    .footer-section:nth-child(3) {
        flex: 0 1 100%;
    }
}


/* platform-preview */
.platform-preview {
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f5;
}

.platform-preview picture {
    display: block;
    width: 100%;
}

.platform-preview img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.platform-preview figcaption {
    padding: 1rem;
    color: #666;
    font-size: 0.9rem;
}



/* gallery.css */
.broker-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
}

.broker-gallery img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.broker-gallery img:hover {
    opacity: 0.9;
}

.broker-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    padding: 20px;
}

.broker-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content picture {
    display: block;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    font-size: 24px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 20px;
    font-size: 24px;
}

.lightbox-prev {
    left: -54px;
}

.lightbox-next {
    right: -54px;
}

@media (max-width: 1400px) {
    .lightbox-prev {
        left: 0px;
    }
    
    .lightbox-next {
        right: 0px;
    }
    
    .lightbox-prev, .lightbox-next{
        padding: 14px 8px;
    }
}

@media (max-width: 768px) {
    .broker-gallery {
        grid-template-columns: 1fr;
    }
    
    .lightbox-close {  
    top: 0;   
    padding: 1px 8px;  
}
}

.platform-preview{
    margin-bottom: 15px;
}
.broker-gallery{
    margin-bottom: 10px;
}
.broker-gallery .platform-preview{
    margin-bottom: 0;
}



/* Tooltip styles for question mark hover effects */



.comparison-table.comparison-table-grid .overall-score-row{
  background: #f5fffa;  
}   
.tooltip-trigger {
    position: relative;
    display: inline-block;
    margin-left: 8px;
    cursor: help;
}

.tooltip-trigger i {
    color: #6B7280;
    font-size: 14px;
    transition: color 0.2s ease;
}

.tooltip-trigger:hover i {
    color: var(--primary-color);
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1F2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    max-width: 300px;
    white-space: normal;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    
    /* Initially hidden */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px);
    transition: all 0.2s ease;
}

/* Tooltip arrow */
.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1F2937;
}

/* Show tooltip on hover */
.tooltip-trigger:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Sub-row styles for deposit fee payment methods */
.sub-row {
    background-color: #F9FAFB !important;
    border-bottom: 1px solid #E5E7EB;
}

.sub-row:hover {
    background-color: #F3F4F6 !important;
}

.sub-label {
    font-weight: normal;
    color: #6B7280;
    font-size: 0.9em;
}

.sub-indent {
    padding-left: 20px;
    position: relative;
}

.sub-indent::before {
    content: "└";
    position: absolute;
    left: 8px;
    color: #9CA3AF;
    font-weight: normal;
}

/* App score styling */
.app-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1.2;
}

.app-score strong {
    color: var(--primary-color);
    font-size: 1em;
}

.app-score small {
    font-size: 0.75em;
    color: #6B7280;
    display: block;
}

.app-score small:last-child {
    color: #059669;
    font-weight: 500;
}

/* Mobile adjustments for tooltips */
@media (max-width: 768px) {
    .tooltip {
        bottom: auto;
        top: 100%;
        margin-top: 8px;
        max-width: 250px;
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .tooltip::after {
        top: -5px;
        border-top-color: transparent;
        border-bottom-color: #1F2937;
    }
    
    .tooltip-trigger:hover .tooltip {
        transform: translateX(-50%) translateY(0);
    }
    
    .sub-indent {
        padding-left: 15px;
    }
    
    .sub-indent::before {
        left: 5px;
    }
    
    .app-score {
        gap: 1px;
    }
    
    .app-score strong {
        font-size: 0.9em;
    }
    
    .app-score small {
        font-size: 0.7em;
    }
}

/* Responsive tooltip positioning for table cells */
.comparison-table .tooltip {
    min-width: 200px;
}

@media (max-width: 480px) {
    .tooltip {
        left: 0;
        transform: none;
        max-width: 200px;
        white-space: normal;
    }
    
    .tooltip::after {
        left: 20px;
        transform: none;
    }
    
    .tooltip-trigger:hover .tooltip {
        transform: translateY(0);
    }
}