/*
Theme Name: City24 Theme
Description: Multi-domain Romanian cities news portal theme for expats and investors - Tailwind CSS Edition
Version: 2.0
Author: City24 Team
Text Domain: city24
*/

/* Import Tailwind CSS from CDN */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* Custom CSS overrides and additional styles */
:root {
    --city-primary: #1e40af;
    --city-secondary: #3b82f6;
    --city-accent: #60a5fa;
    --city-dark: #1e3a8a;
}

/* Custom Tailwind component classes */

/* City-specific color schemes for Tailwind */
.city-brasov {
    --city-primary: #1e40af;
    --city-secondary: #3b82f6;
    --city-accent: #60a5fa;
}

.city-bucuresti {
    --city-primary: #059669;
    --city-secondary: #10b981;
    --city-accent: #34d399;
}

/* Custom components */
.news-card-hover {
    transition: all 0.3s ease;
}

.news-card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.currency-ticker {
    background: linear-gradient(90deg, var(--city-primary), var(--city-secondary));
}

/* Remove default Tailwind container styles since we want full control */
.tw-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* City-specific color schemes */
.city-brasov {
    --primary-color: #2c5aa0;
    --secondary-color: #f4a261;
    --accent-color: #e76f51;
}

.city-bucuresti {
    --primary-color: #264653;
    --secondary-color: #2a9d8f;
    --accent-color: #e9c46a;
}

/* Header Styles */
.site-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.city-name {
    font-size: 1.2rem;
    font-weight: bold;
}

.language-switcher a {
    color: white;
    text-decoration: none;
    margin: 0 5px;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background 0.3s;
}

.language-switcher a:hover,
.language-switcher a.active {
    background: rgba(255,255,255,0.2);
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-logo h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

.site-logo .tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Navigation */
.main-navigation {
    background: rgba(255,255,255,0.1);
    padding: 0.75rem 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-menu li {
    margin: 0 1.5rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.nav-menu .icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Main Content Area */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

/* News Section */
.news-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.news-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    padding: 1.5rem;
}

.news-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.news-category {
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

/* Events Widget */
.event-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-left: 4px solid var(--accent-color);
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
}

.event-date {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem;
    border-radius: 5px;
    text-align: center;
    margin-right: 1rem;
    min-width: 60px;
}

.event-details h4 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.event-details p {
    font-size: 0.9rem;
    color: #666;
}

/* Expat Info Widget */
.expat-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 8px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-menu li {
        margin: 0.25rem 0;
    }
    
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .expat-stats {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .site-logo h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .news-card-content {
        padding: 1rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: var(--secondary-color);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}