/*
Theme Name: Toma Legal Galleria
Description: Professional legal document management theme based on Galleria structure with MemberPress integration
Version: 1.0.0
Author: Toma Legal
*/

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f4f4f4;
}

/* Header */
.site-header {
    background: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo h1 {
    color: #2c5aa0;
    font-size: 1.8rem;
    font-weight: 700;
}

.site-logo a {
    text-decoration: none;
    color: inherit;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.main-navigation a:hover {
    background: #2c5aa0;
    color: white;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Main Content */
.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
    min-height: 60vh;
}

/* Home Hero */
.home-hero {
    background: linear-gradient(135deg, #2c5aa0, #1e3a8a);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 3rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Search Form */
.toma-search-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.search-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.search-input:focus {
    border-color: #2c5aa0;
    outline: none;
}

.search-button {
    padding: 12px 24px;
    background: #2c5aa0;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.search-button:hover {
    background: #1e3a8a;
}

.search-filters {
    display: flex;
    gap: 1rem;
}

.filter-select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    background: white;
}

/* Features */
.home-features {
    background: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    margin: 2rem 0;
}

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

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-item h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* CTA */
.home-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 8px;
}

.home-cta h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: #2c5aa0;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 1rem;
    transition: all 0.3s;
}

.btn:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
}

/* Search Results */
.search-results {
    margin-top: 2rem;
}

.search-results h3 {
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.result-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.result-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.result-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.result-title a {
    color: #2c5aa0;
    text-decoration: none;
}

.result-title a:hover {
    text-decoration: underline;
}

.result-meta {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    background: rgba(44, 90, 160, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
}

.result-preview {
    line-height: 1.6;
    color: #555;
}

/* Pricing */
.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.pricing-plan {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid #ddd;
    transition: all 0.3s;
}

.pricing-plan:hover {
    border-color: #2c5aa0;
    transform: translateY(-5px);
}

.pricing-plan.featured {
    border-color: #2c5aa0;
    transform: scale(1.05);
}

.plan-name {
    color: #2c5aa0;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.plan-period {
    color: #666;
    margin-bottom: 1.5rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

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

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

/* Content Pages */
.content-article {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.entry-title {
    color: #2c5aa0;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.entry-content {
    line-height: 1.8;
}

.entry-content h2,
.entry-content h3 {
    color: #333;
    margin: 1.5rem 0 1rem 0;
}

/* Loading States */
.loading {
    text-align: center;
    padding: 2rem;
    color: #2c5aa0;
}

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2c5aa0;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        display: none;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    
    .main-navigation a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-filters {
        flex-direction: column;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-plans {
        grid-template-columns: 1fr;
    }
    
    .pricing-plan.featured {
        transform: none;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .site-main {
        padding: 1rem 15px;
    }
    
    .home-hero {
        padding: 2rem 1rem;
    }
    
    .toma-search-form {
        padding: 1rem;
    }
}
/* Premium Content Restrictions */
.result-item.restricted-content {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.subscription-prompt {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.subscribe-btn {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.subscribe-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.4);
    color: white;
    text-decoration: none;
}