/* ===========================
   Sentinel Disaster Response
   Proposal Portal Stylesheet
   =========================== */

/* Import base styles from demo */
@import url('../demo/styles.css');

/* === Proposal-Specific Styles === */

/* Proposal Hero Section */
.proposal-hero {
    position: relative;
    min-height: 600px;
    background: linear-gradient(135deg, #0f2942 0%, #1a4d7f 50%, #e74c3c 100%);
    display: flex;
    align-items: center;
    padding: 100px 0 80px;
    overflow: hidden;
}

.proposal-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-label {
    display: inline-block;
    color: #e74c3c;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    padding: 8px 20px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 30px;
    border: 2px solid rgba(231, 76, 60, 0.3);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-stat:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: #e74c3c;
}

.hero-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-stat .stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Quick Navigation Grid */
.quick-nav {
    padding: 80px 0;
    background: #f4f6f8;
}

.quick-nav h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #0f2942;
    margin-bottom: 50px;
    font-weight: 700;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.nav-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.nav-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #e74c3c;
}

.nav-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
    text-align: center;
}

.nav-card h3 {
    font-size: 1.4rem;
    color: #1a4d7f;
    margin-bottom: 12px;
    font-weight: 700;
}

.nav-card p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* Overview Section */
.overview-section {
    padding: 80px 0;
    background: white;
}

.overview-content {
    max-width: 1100px;
    margin: 0 auto;
}

.overview-card {
    background: #f4f6f8;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.highlight-card {
    background: linear-gradient(135deg, #1a4d7f 0%, #0f2942 100%);
    color: white;
    text-align: center;
}

.highlight-card h3 {
    color: #e74c3c;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.large-text {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.two-col-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.overview-card h3 {
    color: #1a4d7f;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    padding: 10px 0 10px 35px;
    position: relative;
    line-height: 1.6;
    color: #555;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.3rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.metric-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #e74c3c;
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a4d7f;
    margin-bottom: 10px;
}

.metric-label {
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Pillars Showcase Section */
.pillars-overview-section {
    padding: 80px 0;
    background: #f4f6f8;
}

.pillars-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.pillar-showcase-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.pillar-showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.pillar-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(231, 76, 60, 0.1);
}

.pillar-icon-large {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 20px;
    display: block;
}

.pillar-showcase-card h3 {
    color: #1a4d7f;
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 700;
}

.pillar-tagline {
    text-align: center;
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.feature-list li {
    padding: 10px 0 10px 25px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.feature-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: bold;
}

.btn-outline {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 12px 25px;
    border: 2px solid #1a4d7f;
    color: #1a4d7f;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #1a4d7f;
    color: white;
    transform: translateY(-2px);
}

/* Financial Section */
.financial-section {
    padding: 80px 0;
    background: white;
}

.financial-chart {
    max-width: 900px;
    margin: 0 auto 50px;
    background: #f4f6f8;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.chart-header {
    text-align: center;
    margin-bottom: 40px;
}

.chart-header h3 {
    font-size: 2rem;
    color: #0f2942;
    margin-bottom: 10px;
}

.chart-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.revenue-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.revenue-year {
    display: flex;
    align-items: center;
    gap: 20px;
}

.year-label {
    min-width: 80px;
    font-weight: 700;
    color: #1a4d7f;
    font-size: 1.1rem;
}

.revenue-bar {
    height: 50px;
    background: linear-gradient(90deg, #1a4d7f 0%, #e74c3c 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    position: relative;
    transition: all 0.5s ease;
    min-width: 100px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.bar-label {
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.financial-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.financial-card {
    background: #f4f6f8;
    padding: 35px;
    border-radius: 12px;
    text-align: center;
    border-top: 4px solid #e74c3c;
}

.financial-card h4 {
    color: #1a4d7f;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.highlight-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #e74c3c;
    margin: 15px 0;
}

.subtext {
    color: #6c757d;
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f2942 0%, #1a4d7f 100%);
}

.cta-box-main {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.cta-box-main h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: white;
}

.cta-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.btn-cta-primary,
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-cta-primary {
    background: #e74c3c;
    color: white;
}

.btn-cta-primary:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #e74c3c;
    transform: translateY(-3px);
}

.btn-icon {
    font-size: 1.3rem;
}

.cta-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.detail-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-item strong {
    color: #e74c3c;
    display: block;
    margin-bottom: 5px;
}

/* Active Navigation State */
.nav a.active {
    color: #e74c3c;
}

/* Responsive Design */
@media (max-width: 968px) {
    .proposal-hero {
        min-height: 500px;
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .two-col-grid {
        grid-template-columns: 1fr;
    }

    .pillars-showcase {
        grid-template-columns: 1fr;
    }

    .cta-box-main h2 {
        font-size: 2.2rem;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .revenue-year {
        flex-direction: column;
        align-items: flex-start;
    }

    .revenue-bar {
        width: 100% !important;
    }
}

@media (max-width: 640px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .nav-grid {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .financial-highlights {
        grid-template-columns: 1fr;
    }

    .cta-details {
        grid-template-columns: 1fr;
    }

    .hero-stat .stat-number {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .nav,
    .footer,
    .btn-outline,
    .btn-cta-primary,
    .btn-cta-secondary {
        display: none;
    }

    .proposal-hero,
    .cta-section {
        background: white;
        color: black;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease;
}

/* Accessibility Enhancements */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #e74c3c;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* Focus Styles */
a:focus,
button:focus {
    outline: 3px solid #e74c3c;
    outline-offset: 2px;
}
