/*
Theme Name: Tattoo shops theme opus4
Theme URI: https://example.com/
Author: Theme Author
Author URI: https://example.com/
Description: A custom theme for Tattoo Shops in Australia directory website
Version: 1.0
License: GPL v2 or later
Text Domain: tattoo-shops-theme
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background-color: #f0f0f0; /* Lighter background */
    color: #333; /* Darker text */
    padding: 20px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.site-logo img {
    height: 150px;
    width: auto;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    color: #333; /* Darker text */
    text-decoration: none;
}

/* Navigation */
.primary-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.primary-navigation a {
    color: #333; /* Darker text */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.primary-navigation a:hover {
    color: #ff6b6b;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #333; /* Darker text */
    font-size: 24px;
    cursor: pointer;
}

/* Main Content */
.site-main {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: #fff;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Cards Layout */
.cards-grid {
    display: grid;
    gap: 30px;
    margin-top: 30px;
}

.cards-grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.cards-grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.cards-grid-2 {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.card-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.card-description {
    color: #555;
    font-size: 15px;
    line-height: 1.5;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff6b6b;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: #ff5252;
}

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

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Forms */
.search-form {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.form-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: #fff;
    min-width: 200px;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumbs a {
    color: #ff6b6b;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 10px;
}

/* Single Post Styles */
.single-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.post-meta {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.meta-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #ff6b6b;
}

.meta-label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.meta-value {
    color: #555;
}

/* Working Hours */
.working-hours {
    display: grid;
    gap: 10px;
}

.day-hours {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 3px;
}

.day-name {
    font-weight: 500;
}

/* Rating */
.rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.star {
    color: #ffc107;
}

/* Footer */
.site-footer {
    background-color: #f0f0f0; /* Lighter background */
    color: #333; /* Darker text */
    padding: 40px 0 20px;
    margin-top: 60px;
}

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

.footer-logo img {
    height: 150px;
    margin-bottom: 15px;
}

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

.footer-navigation li {
    margin-bottom: 10px;
}

.footer-navigation a {
    color: #555; /* Adjusted for lighter background */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-navigation a:hover {
    color: #ff6b6b;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ccc; /* Lighter border */
    color: #555; /* Adjusted for lighter background */
    font-size: 14px;
}

/* Accordion (FAQ) */
.accordion {
    margin-top: 30px;
}

.accordion-item {
    background: #fff;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #f8f9fa;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 20px; /* Padding for when content is visible */
    display: none; /* Hidden by default, jQuery handles display */
    overflow: hidden; /* Ensures content doesn't spill during animation */
    /* Transitions removed as slideToggle handles animation */
}

/* The .accordion-item.active .accordion-content rule is no longer needed 
   as slideToggle directly controls the display of the content.
   The .active class on .accordion-item is still used for the icon. */

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .primary-navigation {
        display: none;
        width: 100%;
        margin-top: 20px;
    }
    
    .primary-navigation.active {
        display: block;
    }
    
    .primary-navigation ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .cards-grid-4,
    .cards-grid-3,
    .cards-grid-2 {
        grid-template-columns: 1fr;
    }
    
    .single-content {
        padding: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .form-select {
        width: 100%;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

.section-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

/* Icons */
.icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Navigation Back Link */
.nav-back {
    display: inline-flex;
    align-items: center;
    color: #ff6b6b;
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-back:hover {
    color: #ff5252;
}

.nav-back::before {
    content: '←';
    margin-right: 8px;
    font-size: 20px;
}
