/* 2026 Investing Strategies Page Styles */

.strategies-main {
    min-height: calc(100vh - 200px);
    padding: 20px;
    background: #0f172a;
}

.strategies-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #334155;
}

.page-header h1 {
    color: #fbbf24;
    margin: 0 0 10px 0;
    font-size: 32px;
}

.page-header .subtitle {
    color: #94a3b8;
    font-size: 16px;
    margin: 0;
}

/* Section Styling */
.section {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.section-title {
    color: #fbbf24;
    font-size: 24px;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #334155;
}

.section-intro {
    color: #94a3b8;
    font-size: 16px;
    margin: 0 0 25px 0;
}

/* Position Cards */
.position-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.position-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #334155;
}

.position-header h3 {
    color: #fbbf24;
    margin: 0;
    font-size: 22px;
}

.position-badge {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.position-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.detail-row {
    display: flex;
    gap: 10px;
}

.detail-row .label {
    color: #94a3b8;
    font-weight: 500;
}

.detail-row .value {
    color: #e2e8f0;
}

/* Target Boxes */
.target-box {
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.target-box.floor {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid #ef4444;
}

.target-box.ceiling {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid #10b981;
}

.target-box h4 {
    color: #fbbf24;
    margin: 0 0 15px 0;
    font-size: 18px;
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.target-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.target-label {
    color: #94a3b8;
    font-size: 13px;
}

.target-value {
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 600;
}

.target-value.positive {
    color: #10b981;
}

.target-value.negative {
    color: #ef4444;
}

.target-action,
.target-reason {
    color: #cbd5e1;
    margin: 10px 0;
    font-size: 14px;
}

.target-action strong,
.target-reason strong {
    color: #fbbf24;
}

/* Tables */
.targets-table,
.scenarios-table {
    overflow-x: auto;
    margin-top: 15px;
}

.targets-table table,
.scenarios-table table {
    width: 100%;
    border-collapse: collapse;
    background: #0f172a;
    border-radius: 8px;
    overflow: hidden;
}

.targets-table th,
.scenarios-table th {
    background: #1e293b;
    color: #fbbf24;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid #334155;
}

.targets-table td,
.scenarios-table td {
    padding: 12px;
    color: #e2e8f0;
    font-size: 14px;
    border-bottom: 1px solid #334155;
}

.targets-table tbody tr:hover,
.scenarios-table tbody tr:hover {
    background: rgba(251, 191, 36, 0.05);
}

.targets-table td.positive,
.scenarios-table td.positive {
    color: #10b981;
    font-weight: 600;
}

.targets-table td.negative,
.scenarios-table td.negative {
    color: #ef4444;
    font-weight: 600;
}

.scenarios-table .floor-row {
    background: rgba(239, 68, 68, 0.1);
}

/* Combined Targets */
.combined-targets {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #334155;
}

.combined-targets h3 {
    color: #fbbf24;
    margin: 0 0 20px 0;
    font-size: 20px;
}

/* Timeline Section */
.timeline-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #334155;
}

.timeline-section h3 {
    color: #fbbf24;
    margin: 0 0 20px 0;
    font-size: 20px;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.timeline-item {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 20px;
}

.timeline-item h4 {
    color: #fbbf24;
    margin: 0 0 15px 0;
    font-size: 16px;
}

.timeline-item p {
    color: #cbd5e1;
    margin: 8px 0;
    font-size: 14px;
}

.timeline-item strong {
    color: #e2e8f0;
}

/* Critical Rules */
.critical-rules {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #334155;
}

.critical-rules h3 {
    color: #fbbf24;
    margin: 0 0 20px 0;
    font-size: 20px;
}

.rule-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-left: 4px solid #fbbf24;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.rule-card h4 {
    color: #fbbf24;
    margin: 0 0 12px 0;
    font-size: 16px;
}

.rule-bad {
    color: #ef4444;
    margin: 8px 0;
    font-size: 14px;
}

.rule-good {
    color: #10b981;
    margin: 8px 0;
    font-size: 14px;
}

/* Seasonal Strategies */
.strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.strategy-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.strategy-card:hover {
    border-color: #fbbf24;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.2);
    transform: translateY(-2px);
}

.strategy-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #334155;
}

.strategy-icon {
    font-size: 28px;
}

.strategy-header h3 {
    color: #fbbf24;
    margin: 0;
    font-size: 20px;
    flex: 1;
}

.strategy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.meta-badge {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.meta-badge.difficulty-easy {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.meta-badge.difficulty-medium {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

.meta-badge.difficulty-hard {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.strategy-content {
    color: #cbd5e1;
}

.strategy-description {
    color: #e2e8f0;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.strategy-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
}

.detail-item strong {
    color: #fbbf24;
    display: block;
    margin-bottom: 5px;
}

.detail-item ul {
    margin: 8px 0 0 20px;
    padding: 0;
    list-style-type: disc;
}

.detail-item li {
    margin: 5px 0;
    color: #cbd5e1;
}

.example-text {
    background: #0f172a;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #fbbf24;
    margin: 8px 0 0 0;
    font-style: italic;
    color: #94a3b8;
}

/* Action Plan */
.action-plan-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.plan-period {
    background: #0f172a;
    border: 1px solid #334155;
    border-left: 4px solid #fbbf24;
    border-radius: 8px;
    padding: 20px;
}

.plan-period h3 {
    color: #fbbf24;
    margin: 0 0 15px 0;
    font-size: 18px;
}

.plan-actions {
    margin: 0;
    padding-left: 20px;
    list-style-type: none;
}

.plan-actions li {
    color: #cbd5e1;
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    padding-left: 25px;
}

.plan-actions li:before {
    content: "✅";
    position: absolute;
    left: 0;
    top: 0;
}

/* Summary Section */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
}

.summary-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 25px;
}

.summary-card h3 {
    color: #fbbf24;
    margin: 0 0 20px 0;
    font-size: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #334155;
}

.summary-item {
    color: #cbd5e1;
    margin: 15px 0;
    font-size: 14px;
    line-height: 1.8;
}

.summary-item strong {
    color: #fbbf24;
}

.summary-card ol {
    margin: 0;
    padding-left: 20px;
    color: #cbd5e1;
}

.summary-card ol li {
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Interactive Elements */
.symbol-link {
    color: #fbbf24;
    text-decoration: none;
    transition: color 0.3s ease;
}

.symbol-link:hover {
    color: #fcd34d;
    text-decoration: underline;
}

.position-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #0f172a;
    border-radius: 8px;
    border: 1px solid #334155;
}

.action-btn {
    background: linear-gradient(135deg, #029D6E 0%, #027a56 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 157, 110, 0.3);
}

.current-price {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.price-label {
    color: #94a3b8;
}

.price-value {
    font-weight: 600;
    font-size: 16px;
}

.price-value.positive {
    color: #10b981;
}

.price-value.negative {
    color: #ef4444;
}

.price-change {
    font-size: 12px;
}

.price-change.positive {
    color: #10b981;
}

.price-change.negative {
    color: #ef4444;
}

.price-loading {
    color: #94a3b8;
    font-style: italic;
}

.price-error {
    color: #ef4444;
    font-size: 12px;
}

/* Collapsible Strategy Cards */
.strategy-toggle {
    background: transparent;
    border: none;
    color: #fbbf24;
    cursor: pointer;
    font-size: 16px;
    padding: 5px 10px;
    transition: transform 0.3s ease;
}

.strategy-toggle:hover {
    transform: scale(1.1);
}

.toggle-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.strategy-content.collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    margin: 0;
}

.strategy-content:not(.collapsed) {
    max-height: 5000px;
    opacity: 1;
    transition: max-height 0.5s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .strategies-main {
        padding: 15px;
    }

    .section {
        padding: 20px;
    }

    .page-header {
        padding: 20px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .position-details {
        grid-template-columns: 1fr;
    }

    .target-grid {
        grid-template-columns: 1fr;
    }

    .timeline-grid {
        grid-template-columns: 1fr;
    }

    .strategies-grid {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .targets-table,
    .scenarios-table {
        font-size: 12px;
    }

    .targets-table th,
    .targets-table td,
    .scenarios-table th,
    .scenarios-table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 20px;
    }

    .section-title {
        font-size: 20px;
    }

    .position-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .strategy-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
