/* Trading Instruments Page Styles */

/* Hero Section */
.instruments-hero {
    position: relative;
    background: linear-gradient(135deg, #0064fa 0%, #0052cc 100%);
    color: white;
    padding: 100px 0 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 100, 250, 0.95) 0%, rgba(0, 82, 204, 0.92) 100%);
    z-index: 1;
}

.instruments-hero .container {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.instruments-hero .hero-content {
    max-width: 600px;
}

.instruments-hero h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.instruments-hero .hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #e0f2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 15px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-hero-primary {
    background: white;
    color: rgb(0, 100, 250);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: floatImage 6s ease-in-out infinite;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes floatImage {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Instruments Navigation */
.instruments-nav {
    background: #f8f9fa;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 70px;
    z-index: 100;
}

.instruments-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.instrument-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.instrument-tab i {
    font-size: 20px;
}

.instrument-tab:hover {
    border-color: rgb(0, 100, 250);
    color: rgb(0, 100, 250);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 100, 250, 0.15);
}

.instrument-tab.active {
    background: rgb(0, 100, 250);
    border-color: rgb(0, 100, 250);
    color: white;
}

/* Instrument Sections */
.instrument-section {
    display: none;
    padding: 60px 0;
}

.instrument-section.active {
    display: block;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-intro h2 {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.section-intro p {
    font-size: 18px;
    line-height: 1.7;
    color: #555;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 100, 250, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    max-width: 100%;
    max-height: 100%;
}

.feature-box h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.feature-box p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

/* Table Section */
.table-section {
    background: white;
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 60px;
}

.table-section h3 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    text-align: center;
}

.table-subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 40px;
}

/* Table Tabs */
.table-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.table-tab {
    padding: 12px 24px;
    background: #f5f5f5;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.table-tab:hover {
    background: #e8f2ff;
    color: rgb(0, 100, 250);
}

.table-tab.active {
    background: rgb(0, 100, 250);
    color: white;
}

/* Table Container */
.table-container {
    display: none;
}

.table-container.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Instruments Table */
.instruments-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    overflow: hidden;
}

.instruments-table thead {
    background: linear-gradient(135deg, #0064fa 0%, #0052cc 100%);
    color: white;
}

.instruments-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.instruments-table tbody tr {
    border-bottom: 1px solid #e8e8e8;
    transition: all 0.2s ease;
}

.instruments-table tbody tr:hover {
    background: #f8f9fa;
}

.instruments-table tbody tr:last-child {
    border-bottom: none;
}

.instruments-table td {
    padding: 18px 20px;
    font-size: 15px;
    color: #333;
}

.instruments-table td strong {
    color: rgb(0, 100, 250);
    font-weight: 600;
}

/* Table Note */
.table-note {
    margin-top: 20px;
    padding: 20px;
    background: #f0f7ff;
    border-left: 4px solid rgb(0, 100, 250);
    border-radius: 8px;
}

.table-note p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.table-note strong {
    color: #1a1a1a;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #0064fa 0%, #0052cc 100%);
    color: white;
    padding: 50px;
    border-radius: 16px;
    text-align: center;
    margin-top: 60px;
}

.cta-box h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-box p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.cta-box .btn-primary {
    background: white;
    color: rgb(0, 100, 250);
}

.cta-box .btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

/* Info Banner */
.info-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: #f8f9fa;
    padding: 50px;
    border-radius: 16px;
    margin-bottom: 60px;
}

.info-banner img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
}

.info-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
}

.info-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-content li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.info-content li img {
    width: 20px;
    height: 20px;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Risk Section */
.risk-section {
    background: #fff3cd;
    padding: 40px 0;
    border-top: 3px solid #ffc107;
    border-bottom: 3px solid #ffc107;
}

.risk-content {
    max-width: 900px;
    margin: 0 auto;
}

.risk-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #856404;
    margin-bottom: 15px;
}

.risk-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #856404;
    margin-bottom: 10px;
}

/* Why Choose Section */
.why-choose-section {
    padding: 80px 0;
    background: white;
}

.why-choose-section .section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 60px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.why-item {
    text-align: center;
    padding: 30px;
}

.why-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.why-item h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.why-item p {
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

/* Navigation Active State */
.nav-menu a.active {
    color: rgb(0, 100, 250);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        order: -1;
        max-height: 350px;
    }

    .instruments-hero .hero-content {
        max-width: 100%;
    }

    .instruments-hero h1 {
        font-size: 40px;
    }

    .hero-stats {
        gap: 20px;
    }

    .table-section {
        padding: 40px 30px;
    }

    .info-banner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .instruments-hero {
        padding: 60px 0 40px;
    }

    .hero-grid {
        gap: 30px;
    }

    .hero-image {
        max-height: 280px;
    }

    .instruments-hero h1 {
        font-size: 32px;
    }

    .instruments-hero .hero-subtitle {
        font-size: 16px;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 20px 0;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 13px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        text-align: center;
        width: 100%;
    }

    .instruments-nav {
        top: 60px;
        padding: 20px 0;
    }

    .instrument-tab {
        padding: 12px 20px;
        font-size: 14px;
    }

    .section-intro h2 {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .table-section {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .table-section h3 {
        font-size: 24px;
    }

    .table-tabs {
        gap: 8px;
    }

    .table-tab {
        padding: 10px 16px;
        font-size: 13px;
    }

    .instruments-table {
        font-size: 13px;
    }

    .instruments-table th,
    .instruments-table td {
        padding: 12px 10px;
    }

    /* Make tables scrollable on mobile */
    .table-container {
        overflow-x: auto;
    }

    .instruments-table {
        min-width: 600px;
    }

    .cta-box {
        padding: 40px 30px;
    }

    .cta-box h3 {
        font-size: 24px;
    }

    .cta-box p {
        font-size: 16px;
    }

    .info-banner {
        padding: 30px 20px;
    }

    .info-banner img {
        height: 250px;
    }

    .info-content h3 {
        font-size: 24px;
    }

    .info-content li {
        font-size: 14px;
    }

    .why-choose-section .section-title {
        font-size: 32px;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .instruments-hero {
        padding: 40px 0 30px;
    }

    .instruments-hero h1 {
        font-size: 26px;
    }

    .instruments-hero .hero-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .hero-image {
        max-height: 220px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 0;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-label {
        font-size: 14px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 14px 24px;
        font-size: 15px;
    }

    .instrument-tab {
        flex: 1 1 45%;
        justify-content: center;
    }

    .table-section h3 {
        font-size: 20px;
    }

    .instruments-table {
        min-width: 500px;
        font-size: 12px;
    }
}

