/**
 * Pressiona - Custom CSS Styles
 * Main stylesheet for the Pressiona application
 */

/* CSS Custom Properties (Variables) */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #f8f9fa;
    --accent-color: #dc3545;
    --success-color: #28a745;
}

/* Navigation Styles */
.navbar-brand {
    font-weight: bold;
    color: var(--primary-color) !important;
}

/* PWA Install Button */
#pwa-install-btn {
    transition: all 0.3s ease;
}

/* PWA button in footer */
.footer #pwa-install-btn {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    display: block;
    width: 100%;
    max-width: 150px;
    margin-left: auto;
    margin-right: auto;
}

.footer #pwa-install-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .footer #pwa-install-btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
        margin-bottom: 1rem;
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer .col-md-4 {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .footer .row {
        flex-direction: column;
    }
    
    .footer .col-md-8,
    .footer .col-md-4 {
        text-align: center;
    }
}

/* Social Media Links */
.social-links a {
    margin: 0 5px;
    font-size: 1.2em;
    text-decoration: none;
}

.social-links .facebook { color: #1877f2; }
.social-links .twitter { color: #1da1f2; }
.social-links .instagram { color: #e4405f; }
.social-links .youtube { color: #ff0000; }
.social-links .tiktok { color: #000000; }
.social-links .linkedin { color: #0077b5; }

/* Deputy/Senator Card Styles */
.deputy-card {
    transition: transform 0.2s;
    border: 1px solid #dee2e6;
}

.deputy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.deputy-photo,
.senator-photo {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

.profile-photo {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

.party-badge {
    font-size: 0.8em;
    font-weight: bold;
}

/* Statistics Cards */
.stats-card {
    background: linear-gradient(135deg, var(--primary-color), #4a90e2);
    color: white;
}

/* Social Media Status Indicators */
.no-social-media {
    opacity: 0.6;
    background-color: #f8f9fa;
}

.has-social-media {
    border-left: 4px solid var(--success-color);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    margin-top: 50px;
}

.footer .twitter-link {
    transition: color 0.3s ease;
}

.footer .twitter-link:hover {
    color: #1da1f2 !important;
    text-decoration: none;
}

/* Mobile-friendly jumbotron styles */
@media (max-width: 576px) {
    .jumbotron {
        padding: 1rem !important;
    }
    
    .jumbotron .container-fluid {
        padding: 1rem 0 !important;
    }
    
    .jumbotron h1 {
        font-size: 1.75rem !important;
    }
    
    .jumbotron .lead {
        font-size: 1rem !important;
    }
    
    .jumbotron p {
        font-size: 0.9rem !important;
    }
    
    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Desktop responsive styles */
@media (min-width: 768px) {
    .h1-md {
        font-size: 2.5rem !important;
    }
    
    .fs-md-5 {
        font-size: 1.25rem !important;
    }
    
    .fs-md-6 {
        font-size: 1rem !important;
    }
    
    .btn-md-lg {
        padding: 0.5rem 1rem;
        font-size: 1.125rem;
    }
}

/* Additional utility classes */
.transition-all {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.15) !important;
}

/* Custom button styles */
.btn-pressiona {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-pressiona:hover {
    background-color: #1e3a6f;
    border-color: #1e3a6f;
    color: white;
}