/**
 * Berkshire Page Styles
 * Header/nav styles are in common.css
 */

/* Main Content */
    .main-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 120px 24px 60px;
    }
    
    /* Hero Section */
    .hero-section {
        background: linear-gradient(135deg, var(--bg-tertiary) 0%, #16213e 100%);
        border: 1px solid var(--border-color);
        border-radius: 24px;
        padding: 48px;
        margin-bottom: 32px;
        position: relative;
        overflow: hidden;
    }
    
    .hero-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
        pointer-events: none;
    }
    
    .hero-content {
        position: relative;
        z-index: 1;
    }
    
    .hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(59, 130, 246, 0.15);
        color: #3b82f6;
        padding: 8px 16px;
        border-radius: 24px;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 20px;
    }
    
    .hero-title {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 16px;
    }
    
    .hero-logo {
        width: 64px;
        height: 64px;
        background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        font-weight: 800;
        color: white;
        flex-shrink: 0;
    }
    
    .hero-title h1 {
        font-size: 36px;
        font-weight: 800;
        line-height: 1.2;
        color: #ffffff;
    }
    
    .hero-description {
        color: var(--text-secondary);
        font-size: 17px;
        max-width: 600px;
        margin-bottom: 24px;
    }
    
    .hero-meta {
        display: flex;
        gap: 32px;
        flex-wrap: wrap;
    }
    
    .hero-meta-item {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        color: var(--text-muted);
    }
    
    .hero-meta-item svg {
        width: 18px;
        height: 18px;
        color: var(--accent);
    }
    
    /* Stats Grid */
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        margin-bottom: 32px;
    }
    
    .stat-card {
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        padding: 24px;
        text-align: center;
    }
    
    .stat-value {
        font-size: 28px;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 4px;
    }
    
    .stat-label {
        font-size: 13px;
        color: var(--text-muted);
    }
    
    /* Holdings Table */
    .holdings-section {
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: 20px;
        overflow: hidden;
    }
    
    .holdings-header {
        padding: 24px;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .holdings-header h2 {
        font-size: 20px;
        font-weight: 700;
    }
    
    .holdings-count {
        background: var(--bg-tertiary);
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 13px;
        color: var(--text-muted);
    }
    
    .holdings-table {
        width: 100%;
        border-collapse: collapse;
    }
    
    .holdings-table th {
        background: var(--bg-tertiary);
        padding: 14px 20px;
        text-align: left;
        font-size: 11px;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .holdings-table td {
        padding: 16px 20px;
        border-top: 1px solid var(--border-color);
        font-size: 14px;
    }
    
    .holdings-table tr:hover td {
        background: rgba(168, 85, 247, 0.03);
    }
    
    .stock-cell {
        display: flex;
        align-items: center;
        gap: 14px;
    }
    
    .stock-logo {
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: linear-gradient(135deg, var(--accent) 0%, var(--accent-pink) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 12px;
        color: white;
        flex-shrink: 0;
    }
    
    .stock-logo.aapl { background: linear-gradient(135deg, #555 0%, #333 100%); }
    .stock-logo.axp { background: linear-gradient(135deg, #006fcf 0%, #004a8f 100%); }
    .stock-logo.bac { background: linear-gradient(135deg, #e31837 0%, #b8132c 100%); }
    .stock-logo.ko { background: linear-gradient(135deg, #f40009 0%, #c10007 100%); }
    .stock-logo.cvx { background: linear-gradient(135deg, #0066b2 0%, #004d86 100%); }
    .stock-logo.oxy { background: linear-gradient(135deg, #ed1c24 0%, #bd161c 100%); }
    .stock-logo.khc { background: linear-gradient(135deg, #1d4f91 0%, #153b6d 100%); }
    .stock-logo.mco { background: linear-gradient(135deg, #00263a 0%, #001a28 100%); }
    .stock-logo.v { background: linear-gradient(135deg, #1a1f71 0%, #0d1038 100%); }
    .stock-logo.ma { background: linear-gradient(135deg, #eb001b 0%, #f79e1b 100%); }
    .stock-logo.amzn { background: linear-gradient(135deg, #ff9900 0%, #cc7a00 100%); }
    
    .stock-info h4 {
        font-size: 15px;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 2px;
    }
    
    .stock-info span {
        font-size: 12px;
        color: var(--text-muted);
    }
    
    .pct-cell {
        font-weight: 600;
        color: var(--accent);
    }
    
    .pct-bar {
        width: 100%;
        height: 6px;
        background: var(--bg-tertiary);
        border-radius: 3px;
        margin-top: 6px;
        overflow: hidden;
    }
    
    .pct-fill {
        height: 100%;
        background: linear-gradient(90deg, var(--accent) 0%, var(--accent-pink) 100%);
        border-radius: 3px;
    }
    
    .activity-badge {
        display: inline-block;
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
    }
    
    .activity-badge.add { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
    .activity-badge.reduce { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
    .activity-badge.hold { background: rgba(107, 114, 128, 0.15); color: #9ca3af; }
    .activity-badge.new { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
    
    /* View Toggle */
    .view-toggle {
        display: flex;
        gap: 8px;
    }
    
    .view-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 16px;
        border-radius: 10px;
        border: 1px solid var(--border-color);
        background: transparent;
        color: var(--text-secondary);
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .view-btn:hover {
        border-color: var(--accent);
        color: var(--text-primary);
    }
    
    .view-btn.active {
        background: var(--accent);
        border-color: var(--accent);
        color: white;
    }
    
    .view-btn svg {
        width: 16px;
        height: 16px;
    }
    
    /* Pie Chart */
    .pie-chart-container {
        display: none;
        padding: 40px;
    }
    
    .pie-chart-container.active {
        display: block;
    }
    
    .pie-chart-wrapper {
        display: flex;
        gap: 40px;
        align-items: flex-start;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pie-chart-svg {
        width: 400px;
        height: 400px;
        flex-shrink: 0;
    }
    
    .pie-slice {
        cursor: pointer;
        transition: transform 0.2s, filter 0.2s;
        transform-origin: center;
    }
    
    .pie-slice:hover {
        filter: brightness(1.2);
    }
    
    .pie-slice.highlighted {
        filter: brightness(1.3) drop-shadow(0 0 10px rgba(255,255,255,0.3));
    }
    
    .pie-legend {
        flex: 1;
        min-width: 280px;
        max-width: 400px;
    }
    
    .pie-legend-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 16px;
        color: var(--text-primary);
    }
    
    .pie-legend-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
        max-height: 350px;
        overflow-y: auto;
    }
    
    .pie-legend-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
        border-radius: 10px;
        background: var(--bg-tertiary);
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .pie-legend-item:hover,
    .pie-legend-item.highlighted {
        background: rgba(168, 85, 247, 0.15);
    }
    
    .pie-legend-color {
        width: 16px;
        height: 16px;
        border-radius: 4px;
        flex-shrink: 0;
    }
    
    .pie-legend-info {
        flex: 1;
        min-width: 0;
    }
    
    .pie-legend-ticker {
        font-weight: 600;
        font-size: 14px;
        color: var(--text-primary);
    }
    
    .pie-legend-name {
        font-size: 12px;
        color: var(--text-muted);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .pie-legend-pct {
        font-weight: 700;
        font-size: 14px;
        color: var(--accent);
    }
    
    .pie-tooltip {
        position: fixed;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 12px 16px;
        pointer-events: none;
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.15s;
        box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    }
    
    .pie-tooltip.visible {
        opacity: 1;
    }
    
    .pie-tooltip-ticker {
        font-weight: 700;
        font-size: 16px;
        color: var(--text-primary);
        margin-bottom: 4px;
    }
    
    .pie-tooltip-name {
        font-size: 13px;
        color: var(--text-secondary);
        margin-bottom: 8px;
    }
    
    .pie-tooltip-stats {
        display: flex;
        gap: 16px;
    }
    
    .pie-tooltip-stat {
        text-align: center;
    }
    
    .pie-tooltip-value {
        font-weight: 700;
        font-size: 14px;
        color: var(--accent);
    }
    
    .pie-tooltip-label {
        font-size: 11px;
        color: var(--text-muted);
    }
    
    @media (max-width: 768px) {
        .pie-chart-svg {
            width: 300px;
            height: 300px;
        }
        .pie-chart-wrapper {
            flex-direction: column;
            align-items: center;
        }
        .pie-legend {
            width: 100%;
        }
    }
    
    /* CTA Section */
    .cta-section {
        margin-top: 48px;
        background: linear-gradient(135deg, var(--accent) 0%, var(--accent-pink) 100%);
        border-radius: 20px;
        padding: 48px;
        text-align: center;
    }
    
    .cta-section h2 {
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 12px;
    }
    
    .cta-section p {
        color: rgba(255,255,255,0.9);
        margin-bottom: 24px;
        font-size: 16px;
    }
    
    .cta-button {
        display: inline-block;
        background: white;
        color: var(--accent);
        padding: 14px 32px;
        border-radius: 12px;
        font-weight: 700;
        font-size: 16px;
        text-decoration: none;
        transition: transform 0.2s;
    }
    
    .cta-button:hover {
        transform: translateY(-2px);
    }
    
    /* Footer */
    .site-footer {
        text-align: center;
        padding: 40px 24px;
        color: var(--text-muted);
        font-size: 14px;
        border-top: 1px solid var(--border-color);
        margin-top: 60px;
    }
    
    /* Mobile */
    @media (max-width: 768px) {
        .hero-section { padding: 32px 20px; }
        .hero-title { flex-direction: column; align-items: flex-start; gap: 12px; }
        .hero-title h1 { font-size: 26px; }
        .stats-grid { grid-template-columns: repeat(2, 1fr); }
        .holdings-table th:nth-child(4),
        .holdings-table td:nth-child(4),
        .holdings-table th:nth-child(5),
        .holdings-table td:nth-child(5) { display: none; }
    }
    
/* Language Switcher styles are in common.css */
