/*
Theme Name: Cambodia Island Ferry
Theme URI: https://cambodiaislandferry.com
Author: Your Name
Author URI: https://yourwebsite.com
Description: A custom WordPress theme for boat ticket booking from Sihanoukville to Cambodian islands. Features a stunning Cambodian temple logo and WooCommerce integration for selling ferry tickets online.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cambodia-island-ferry
Tags: woocommerce, booking, ferry, travel, cambodia, responsive, custom-colors

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

:root {
    --primary-blue: #0066cc;
    --ocean-deep: #003d7a;
    --tropical-teal: #00a896;
    --sand-gold: #f4a259;
    --sunset-coral: #ff6b6b;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark: #212529;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    background: var(--light-gray);
    line-height: 1.6;
}

/* WordPress Admin Bar Compatibility */
body.admin-bar .top-bar {
    margin-top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .top-bar {
        margin-top: 46px;
    }
}

/* Top Bar */
.top-bar {
    background: var(--ocean-deep);
    color: var(--white);
    padding: 0.5rem 0;
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.contact-info {
    display: flex;
    gap: 2rem;
}

/* Main Header */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ocean-deep);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.site-logo-img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.site-logo-img:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 2.5rem;
}

/* Navigation */
.main-navigation {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.main-navigation a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.main-navigation a:hover {
    color: var(--primary-blue);
}

.main-navigation .current-menu-item a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-blue);
}

/* WooCommerce Cart */
.header-cart {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.woo-cart-link {
    position: relative;
    background: var(--primary-blue);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.woo-cart-link:hover {
    background: var(--ocean-deep);
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--sunset-coral);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Main Content */
.site-main {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: #ddd;
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

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

.footer-section h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

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

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

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

.footer-section a:hover {
    color: var(--sand-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 0.3rem;
    }
}
