/*
Theme Name: Majorette
Description: A modern WordPress directory theme for Majorette Dance Teams with responsive design and professional appearance.
Version: 1.0
Author: Custom Theme
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.75rem;
    line-height: 1.4;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
}

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: static;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    font-weight: 500;
    color: #2c3e50;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
}

/* Modern Hero Section */
.hero-section {
    min-height: 80vh;
    background: url('assets/hero image.png') center/cover, linear-gradient(135deg, #e74c3c 0%, #c0392b 50%, #a93226 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.7) 0%, rgba(192, 57, 43, 0.7) 50%, rgba(169, 50, 38, 0.7) 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    line-height: 1.6;
    font-weight: 300;
}

/* Hero Search Form */
.hero-search-form {
    margin-top: 3rem;
}

.search-form-container {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-width: 600px;
    margin: 0 auto;
}

.search-form-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: left;
}

.search-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-form-titles h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.location-search-form {
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group select {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.form-group select:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-group select:disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #e9ecef;
}

.search-btn {
    width: 100%;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.search-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #c0392b, #a93226);
}

.search-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.btn-icon {
    font-size: 1.2rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    margin: 0 auto;
    border-radius: 2px;
}

/* States Grid */
.states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.state-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.state-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.state-card:hover {
    border-color: #e74c3c;
}

.state-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.state-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.2;
}

.state-count {
    color: #8e44ad;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.state-link {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 0.3rem;
    font-size: 0.9rem;
}

.state-link:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    color: white;
    text-decoration: none;
}

/* No states message */
.no-states-message {
    text-align: center;
    padding: 3rem 0;
    grid-column: 1 / -1;
}

.no-states-message p {
    color: #7f8c8d;
    font-size: 1.125rem;
    font-style: italic;
}

/* Card Styles */
.cards-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.cards-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.cards-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.cards-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #f0f0f0;
    position: relative;
}

.card:hover {
    border-color: #e74c3c;
}

.card-image-container {
    position: relative;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 1.8rem;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    line-height: 1.3;
}

.card-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #e74c3c;
    text-decoration: none;
}

.card-address {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin: 0.8rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-address::before {
    content: "📍";
    font-size: 0.9rem;
}

.card-meta {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.card-description {
    color: #555;
    line-height: 1.6;
}

/* Popular Listing Cards */
.popular-listing-card {
    position: relative;
}

.popular-listing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border-radius: 15px 15px 0 0;
}

/* Rating Display */
.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
}

.rating-stars {
    color: #f39c12;
}

.rating-text {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Work Time Display */
.work-time {
    background: #ecf0f1;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.work-time h4 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.work-time-day {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px solid #bdc3c7;
}

.work-time-day:last-child {
    border-bottom: none;
}

/* Contact Info */
.contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

/* Breadcrumbs */
.breadcrumbs {
    background: #ecf0f1;
    padding: 1rem 0;
}

.breadcrumbs ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumbs li::after {
    content: ">";
    margin-left: 0.5rem;
    color: #7f8c8d;
}

.breadcrumbs li:last-child::after {
    display: none;
}

/* Footer */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    max-height: 50px;
    margin-bottom: 1rem;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    color: #ecf0f1;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* Sections */
.section {
    padding: 4rem 0;
    background: #fff;
}

.section-alt {
    background: #f8f9fa;
}

/* Browse States Section */
.browse-states-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content > p {
        font-size: 1.1rem;
    }
    
    .search-form-container {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-form-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .search-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .cards-grid-3,
    .cards-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .cards-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        min-height: 100vh;
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content > p {
        font-size: 1rem;
    }
    
    .search-form-container {
        padding: 1.5rem;
        border-radius: 10px;
    }
    
    .search-form-titles h3 {
        font-size: 1.2rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background: #2980b9;
    color: #fff;
    text-decoration: none;
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Latest Articles Section */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.article-card-clean {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.article-card-clean:hover {
    border-color: #e74c3c;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.article-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.article-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card-clean:hover .article-image {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
}

.article-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
}

.article-card-clean:hover .article-title {
    color: #e74c3c;
}

/* View All Posts Button */
.view-all-posts {
    text-align: center;
    margin-top: 3rem;
}

.view-all-btn {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.view-all-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Blog Post Styling */
.entry-meta {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.meta-item {
    display: inline-block;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.meta-item time {
    font-weight: 500;
}

/* Responsive Design for Articles */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .article-image-container {
        height: 180px;
    }
    
    .article-content {
        padding: 1.2rem;
    }
    
    .article-title {
        font-size: 1.1rem;
    }
    
    .view-all-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    /* Enhanced Mobile Menu Styles */
    .menu-toggle {
        display: flex !important;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        z-index: 1001;
    }

    .menu-toggle-text {
        font-size: 0.875rem;
        color: #2c3e50;
        font-weight: 500;
    }

    .menu-toggle-icon {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .menu-toggle-icon span {
        width: 20px;
        height: 2px;
        background-color: #2c3e50;
        transition: all 0.3s ease;
        display: block;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] .menu-toggle-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .main-navigation ul {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 1rem 0;
        z-index: 1000;
        margin: 0;
        list-style: none;
    }

    .main-navigation ul.toggled {
        display: flex !important;
    }

    .main-navigation li {
        margin: 0;
        width: 100%;
    }

    .main-navigation a {
        display: block;
        padding: 1rem 2rem;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
        color: #2c3e50;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .main-navigation a:hover {
        background-color: #f8f9fa;
        color: #3498db;
        text-decoration: none;
    }

    .header-content {
        position: relative;
    }
    
    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .articles-grid {
        gap: 1rem;
    }
    
    .article-image-container {
        height: 160px;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .article-title {
        font-size: 1rem;
    }
    
    .view-all-posts {
        margin-top: 2rem;
    }
    
    .view-all-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}
