/*
Staking Template Styles
Template: page-staking.php
*/


/* Staking Layout Container */
.mobile-trade-widget {
    display: none;
}
@media (max-width: 768px) {
    .mobile-trade-widget {
        display: block;
    }
}

.staking-layout {
    display: flex;
    flex-direction: row;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: flex-start;
}

/* Staking Content Container */
.staking-content {
    flex: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Staking Content Styling */
.staking-content .post-content {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    text-align: justify;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

/* Mobile Breadcrumb - Hidden on Desktop */
.mobile-breadcrumb {
    display: none;
    margin-bottom: 20px;
}

/* Mobile Sidebar Content - Hidden on Desktop */
.mobile-sidebar-content {
    display: none;
    margin-bottom: 30px;
}

/* Reset margins for widgets in mobile sidebar */
.mobile-sidebar-content .staking-calculator,
.mobile-sidebar-content .arzpaya-app-download {
    margin: 0 !important;
    margin-bottom: 20px !important;
}

.mobile-sidebar-content > *:last-child {
    margin-bottom: 0 !important;
}

/* Typography */
.staking-content .post-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.1em;
    color: var(--text-body);
}

.staking-content .post-content h1,
.staking-content .post-content h2,
.staking-content .post-content h3,
.staking-content .post-content h4,
.staking-content .post-content h5,
.staking-content .post-content h6 {
    margin: 0px 0 20px 0;
    color: var(--text-body);
    font-weight: 600;
}

.staking-content .post-content h1 {
    font-size: 2.5em;
    margin-bottom: 30px;
}

.staking-content .post-content h2 {
    font-size: 2em;
    margin-bottom: 25px;
}

.staking-content .post-content h3 {
    font-size: 1.6em;
    margin-bottom: 20px;
}

.staking-content .post-content h4 {
    font-size: 1.4em;
    margin-bottom: 18px;
}

.staking-content .post-content h5,
.staking-content .post-content h6 {
    font-size: 1.2em;
    margin-bottom: 15px;
}

/* Staking Sidebar */
.staking-sidebar {
    display: flex;
    flex-direction: column;
    flex: 0 0 350px;
    width: 350px;
    height: fit-content;
    gap: 20px; /* Increased consistent gap */
}

.staking-sidebar .sidebar-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Same gap as parent for consistency */
}

/* Reset all plugin margins in sidebar for consistent spacing */
.staking-sidebar .sidebar-content .arzpaya-trade-widget,
.staking-sidebar .sidebar-content .arzpaya-exchange-container,
.staking-sidebar .sidebar-content .arzpaya-app-download {
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    max-width: 100%;
}

/* Additional specificity to override plugin styles */
.staking-sidebar .sidebar-content > .arzpaya-trade-widget,
.staking-sidebar .sidebar-content > .arzpaya-exchange-container,
.staking-sidebar .sidebar-content > .arzpaya-app-download {
    margin: 0 !important;
}

/* Force spacing using adjacent sibling selector as fallback */
.staking-sidebar .sidebar-content > * + * {
    margin-top: 20px !important;
}

/* Ensure consistent styling for all sidebar widgets */
.staking-sidebar .sidebar-content .arzpaya-trade-widget,
.staking-sidebar .sidebar-content .arzpaya-exchange-container {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Sticky Sidebar Widget - Last Shortcode (Desktop Only) */
.staking-sidebar .sticky-sidebar-widget {
    position: relative;
    width: 100%;
    transition: none;
}

/* Desktop: Make last widget sticky when scroll reaches its starting position */
@media (min-width: 1025px) {
    .staking-sidebar .sticky-sidebar-widget.is-sticky {
        position: fixed;
        top: 80px;
        width: 350px; /* Match sidebar width */
        z-index: 10;
        max-width: 350px;
    }
    
    /* Reset margins for sticky widget */
    .staking-sidebar .sticky-sidebar-widget .arzpaya-trade-widget,
    .staking-sidebar .sticky-sidebar-widget .arzpaya-exchange-container,
    .staking-sidebar .sticky-sidebar-widget .arzpaya-app-download {
        margin: 0 !important;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .staking-layout {
        flex-direction: column;
        gap: 30px;
    }

    .staking-sidebar {
        display: none; /* Hide sidebar on tablet */
    }
    
    /* Show mobile breadcrumb on tablet */
    .mobile-breadcrumb {
        display: block;
    }
    
    /* Show mobile sidebar content on tablet */
    .mobile-sidebar-content {
        display: block;
    }

    .staking-content {
        min-height: auto;
    }

    .staking-content .post-content {
        max-width: 900px;
        padding: 50px 30px;
    }
}

@media (max-width: 768px) {
    .staking-layout {
        padding: 0 15px;
        gap: 20px;
    }

    .staking-sidebar {
        display: none; /* Hide sidebar on mobile */
    }
    
    /* Show mobile breadcrumb on mobile */
    .mobile-breadcrumb {
        display: block;
    }
    
    /* Show mobile sidebar content on mobile */
    .mobile-sidebar-content {
        display: block;
        margin-bottom: 30px;
    }

    .staking-content .post-content {
        padding: 40px 20px;
        max-width: 100%;
    }

    .staking-content .post-content h1 {
        font-size: 2em;
    }

    .staking-content .post-content h2 {
        font-size: 1.7em;
    }

    .staking-content .post-content h3 {
        font-size: 1.4em;
    }

    .staking-content .post-content h4 {
        font-size: 1.2em;
    }

    .staking-content .post-content p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .staking-layout {
        padding: 0 10px;
        gap: 15px;
    }
    
    /* Show mobile breadcrumb on small mobile */
    .mobile-breadcrumb {
        display: block;
    }
    
    /* Show mobile sidebar content on small mobile */
    .mobile-sidebar-content {
        display: block;
        margin-bottom: 25px;
    }

    .staking-content .post-content {
        padding: 30px 15px;
    }

    .staking-content .post-content h1 {
        font-size: 1.8em;
    }

    .staking-content .post-content h2 {
        font-size: 1.5em;
    }

    .staking-content .post-content h3 {
        font-size: 1.3em;
    }

    .staking-content .post-content h4 {
        font-size: 1.1em;
    }
}