/* app/static/css/main.css */
:root {
    /* Color Variables */
    --primary-color: #2c5282;
    --secondary-color: #4a5568;
    --accent-color: #48bb78;
    --background-color: #f7fafc;
    --text-color: #2d3748;
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Spacing */
    --spacing-small: 0.5rem;
    --spacing-medium: 1rem;
    --spacing-large: 2rem;
}

/* Global Styles */
body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

/* Profile Specific Styles */
.profile-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-medium);
    margin-bottom: var(--spacing-large);
}

.profile-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-medium);
    margin-bottom: var(--spacing-large);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-medium);
}

/* Form Styles */
.form-group {
    margin-bottom: var(--spacing-medium);
}

.form-label {
    font-weight: 600;
    margin-bottom: var(--spacing-small);
}

.form-control {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 0.5rem;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #1a365d;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--spacing-small); }
.mt-2 { margin-top: var(--spacing-medium); }
.mt-3 { margin-top: var(--spacing-large); }

.blur-content {
    filter: blur(4px);
    pointer-events: none;
    opacity: 0.6;
}

/* Iframe Styling for Video Thumbnails */
.aspect-w-16 {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.aspect-h-9 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.aspect-h-9 iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0.25rem;
}

/* Mobile Responsive Enhancements */
@media (max-width: 640px) {
    /* Profile header adjustments */
    .profile-header-mobile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-header-mobile img,
    .profile-header-mobile .profile-avatar-placeholder {
        margin-bottom: 1rem;
    }
    
    /* Typography adjustments for mobile */
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2, h3 {
        font-size: 1.25rem !important;
    }
    
    /* Button adjustments */
    .mobile-button-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .mobile-button-group button,
    .mobile-button-group a {
        width: 100%;
        text-align: center;
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    /* Contact info and social media formatting */
    .contact-social-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .contact-info-mobile,
    .social-links-mobile {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }
    
    /* Table adjustments */
    .table-container-mobile {
        margin: 0 -1rem;
        padding: 0 1rem;
        overflow-x: auto;
    }
    
    /* Compact cards for mobile */
    .mobile-compact-card {
        padding: 0.75rem !important;
    }
}

/* Helper for two-column grid on small screens */
.grid-cols-2-sm {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

/* Prevent long text from breaking layouts */
.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    display: inline-block;
}

.flag-icon {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    background-size: cover;
}