﻿/* PFX Bonds Custom Styles */

/* === CSS Variables === */
:root {
    --pfx-primary: #1e7e34;
    --pfx-primary-dark: #155724;
    --pfx-secondary: #6c757d;
    --pfx-accent: #17a2b8;
    --pfx-warning: #ffc107;
    --pfx-danger: #dc3545;
    --pfx-light: #f8f9fa;
    --pfx-dark: #343a40;
    --pfx-sidebar-bg: #ffffff;
    --pfx-sidebar-border: #dee2e6;
    --pfx-nav-bg: linear-gradient(135deg, var(--pfx-primary), var(--pfx-accent));
    --pfx-header-bg: #ffffff;
    --pfx-footer-bg: #2c3e50;
    --pfx-shadow: 0 2px 4px rgba(0,0,0,0.1);
    --pfx-shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
}

/* === Base Styles === */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}


/* === Sidebar Styles === */
.pfx-left-sidebar,
.pfx-right-sidebar {
    background: var(--pfx-sidebar-bg);
    min-height: calc(100vh - 200px);
    border-right: 1px solid var(--pfx-sidebar-border);
    border-left: 1px solid var(--pfx-sidebar-border);
    padding: 0;
}

.pfx-left-sidebar {
    border-left: none;
}

.pfx-right-sidebar {
    border-right: none;
}

.sidebar-content {
    padding: 1.5rem 1rem;
}

.sidebar-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

    .sidebar-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }

.sidebar-heading {
    color: var(--pfx-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--pfx-primary);
}

/* === Left Sidebar Specific === */
.stat-item {
    text-align: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--pfx-light), #fff);
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pfx-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--pfx-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

    .feature-list li {
        display: flex;
        align-items: center;
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
    }

.contact-card {
    background: linear-gradient(135deg, var(--pfx-primary), var(--pfx-accent));
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

    .contact-card .card-title {
        margin-bottom: 0.75rem;
        font-weight: 600;
    }

    .contact-card .btn {
        background: white;
        color: var(--pfx-primary);
        border: none;
        font-weight: 600;
    }

        .contact-card .btn:hover {
            background: var(--pfx-light);
            transform: translateY(-1px);
        }

/* === Right Sidebar Specific === */
.news-item {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--pfx-light);
    border-radius: 6px;
    border-left: 3px solid var(--pfx-primary);
}

.news-date {
    font-size: 0.75rem;
    color: var(--pfx-secondary);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.news-title {
    font-weight: 600;
    color: var(--pfx-primary);
    margin-bottom: 0.5rem;
}

.news-excerpt {
    font-size: 0.85rem;
    color: var(--pfx-secondary);
    line-height: 1.4;
}

.sector-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

    .sector-tags .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }

.cta-card {
    background: linear-gradient(135deg, var(--pfx-accent), var(--pfx-primary));
    color: white;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .cta-card::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
        transform: rotate(45deg);
        animation: shine 3s infinite;
    }

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.cta-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-title {
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.cta-text {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cta-buttons .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .social-link.linkedin {
        background: #0077b5;
    }

    .social-link.twitter {
        background: #1da1f2;
    }

    .social-link.email {
        background: var(--pfx-secondary);
    }

    .social-link:hover {
        transform: translateY(-2px);
        box-shadow: var(--pfx-shadow);
        color: white;
    }

.resource-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.resource-link {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--pfx-light);
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

    .resource-link:hover {
        background: #e9ecef;
        transform: translateX(5px);
        color: var(--pfx-primary);
    }

/* === Utility Classes === */
.text-pfx-primary {
    color: var(--pfx-primary) !important;
}

.text-pfx-secondary {
    color: var(--pfx-secondary) !important;
}

.bg-pfx-primary {
    background-color: var(--pfx-primary) !important;
}

.bg-pfx-light {
    background-color: var(--pfx-light) !important;
}

.btn-pfx-primary {
    background: var(--pfx-primary);
    border-color: var(--pfx-primary);
    color: white;
}

    .btn-pfx-primary:hover {
        background: var(--pfx-primary-dark);
        border-color: var(--pfx-primary-dark);
        color: white;
    }

.shadow-pfx {
    box-shadow: var(--pfx-shadow) !important;
}

.shadow-pfx-lg {
    box-shadow: var(--pfx-shadow-lg) !important;
}

/* === Animations === */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}
