/* Shared CSS - Common styles used across index.html and project pages */

/* Projects Dropdown Styles */
.projects-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 0;
    font-size: 16px;
    transition: color 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    text-decoration: none;
}

.dropdown-button .material-icons-outlined {
    font-size: 20px;
}

.button-text {
    font-size: 16px;
    font-weight: 300;
}

.dropdown-button:hover {
    color: var(--accent-primary);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px;
    margin-top: 2px;
}

/* Ensure dropdown doesn't get cut off on smaller screens */
@media (max-width: 768px) {
    .dropdown-content {
        right: 0;
        left: auto;
        min-width: 280px;
    }
    
    .button-text {
        display: none;
    }
}

.projects-dropdown:hover .dropdown-content,
.dropdown-content:hover {
    display: block;
}

/* Add a small invisible bridge to prevent dropdown from disappearing */
.projects-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 6px;
    background: transparent;
    z-index: 999;
}

.dropdown-item {
    display: block;
    padding: 12px;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 6px;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: var(--background-secondary);
}

.project-name {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.project-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Common Icon Sizing */
.home-icon {
    font-size: 20px !important;
}

/* Header Styles - Common across pages */
.site-name {
    font-size: 18px;
    font-weight: 100;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 36px;
}

.contact-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle {
    font-size: 20px;
    cursor: pointer;
    color: var(--text-secondary);
    user-select: none;
}

/* Container Padding Override - Standard across all pages */
.container {
    padding: 60px 20px;
}

/* Executive Summary Shared Styles */
.executive-summary {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 40px 40px;
    margin: 5px 0 0 0;
    display: flex;
    align-items: center;
    min-height: 200px;
}

.executive-content {
    max-width: 1000px;
    margin: 0 auto;
}

.executive-title {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 0;
    line-height: 1.2;
    letter-spacing: -1px;
}

/* Container after summary - consistent spacing */
.container-after-summary {
    padding: 5px 20px 60px 20px; /* Ultra minimal top padding */
}

/* Content Section Styling - DMA Style Bullets and Lists */
.content-section ul {
    list-style-type: none;
    margin: 20px 0;
    padding-left: 0;
}

.content-section ol {
    list-style-type: decimal;
    margin: 20px 0;
    padding-left: 20px;
}

.content-section li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 300;
    padding-left: 25px;
    position: relative;
}

.content-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 20px;
}

.content-section ol li {
    padding-left: 10px;
}

.content-section li strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Subsection Headers */
.subsection-header {
    font-size: 24px;
    font-weight: 500;
    margin: 40px 0 20px 0;
    color: var(--accent-primary);
    line-height: 1.3;
}

/* Key Findings - Clean Style (No Boxes) */
.findings-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Key findings lists use the same styling as regular content-section lists */
.key-findings ul {
    list-style-type: none;
    margin: 20px 0;
    padding-left: 0;
}

.key-findings li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 300;
    padding-left: 25px;
    position: relative;
}

.key-findings ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 20px;
}

.key-findings li strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .executive-summary {
        padding: 40px 20px;
    }

    .executive-title {
        font-size: 28px;
    }
    
    .container-after-summary {
        padding: 3px 20px 60px 20px; /* Ultra tight spacing on mobile */
    }
}