/*
Theme Name: InMalta Solar
Theme URI: https://inmalta.world
Author: InMalta
Author URI: https://inmalta.world
Description: Modern solar neon theme for Malta business directory with vibrant gradients and clean design
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: inmalta-solar
*/

/* Dark Theme (Default) */
:root, [data-theme="dark"] {
    --solar-primary: #FF6B35;
    --solar-secondary: #F7931E;
    --solar-accent: #FDB44B;
    --neon-blue: #00D4FF;
    --neon-purple: #BD00FF;
    --neon-pink: #FF006E;

    --bg-primary: #0A0E27;
    --bg-secondary: #1A1F3A;
    --bg-tertiary: #2A3150;
    --text-primary: #E8F0F2;
    --text-secondary: #A0AEC0;
    --text-muted: #6B7A99;
    --border-color: rgba(255, 107, 53, 0.2);
    --shadow-color: rgba(255, 107, 53, 0.1);

    /* Gradient overlays for cards with background images */
    --gradient-overlay-start: rgba(26, 31, 58, 0.92);
    --gradient-overlay-end: rgba(10, 14, 39, 0.95);
}

/* Light Theme */
[data-theme="light"] {
    --solar-primary: #FF6B35;
    --solar-secondary: #F7931E;
    --solar-accent: #FDB44B;
    --neon-blue: #0099CC;
    --neon-purple: #9933CC;
    --neon-pink: #CC0055;

    --bg-primary: #F5F7FA;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #E8ECF0;
    --text-primary: #1A1F3A;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --border-color: rgba(26, 31, 58, 0.1);
    --shadow-color: rgba(26, 31, 58, 0.08);

    /* Gradient overlays for cards with background images - lighter for readability */
    --gradient-overlay-start: rgba(245, 247, 250, 0.88);
    --gradient-overlay-end: rgba(255, 255, 255, 0.92);
}

/* Legacy variable support */
:root {
    --dark-bg: var(--bg-primary);
    --card-bg: var(--bg-secondary);
    --text-light: var(--text-primary);
    --text-gray: var(--text-secondary);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

[data-theme="light"] body {
    background: var(--bg-primary);
}

.site-header {
    background: rgba(26, 31, 58, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.1);
}

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

/* Funky Text Logo */
.funky-logo {
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: -1px;
    display: inline-block;
    transition: all 0.3s ease;
}

.logo-in {
    color: var(--neon-blue);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8),
                 0 0 40px rgba(0, 212, 255, 0.4);
    font-style: italic;
}

.logo-malta {
    background: linear-gradient(135deg, var(--solar-primary), var(--solar-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(255, 107, 53, 0.6));
    font-weight: 900;
    text-transform: uppercase;
}

.logo-world {
    color: var(--neon-purple);
    text-shadow: 0 0 15px rgba(189, 0, 255, 0.6),
                 0 0 30px rgba(189, 0, 255, 0.3);
    font-weight: 700;
}

.funky-logo:hover {
    transform: scale(1.05) rotate(-1deg);
}

.funky-logo:hover .logo-in {
    text-shadow: 0 0 30px rgba(0, 212, 255, 1),
                 0 0 60px rgba(0, 212, 255, 0.6);
}

.funky-logo:hover .logo-malta {
    filter: drop-shadow(0 0 25px rgba(255, 107, 53, 0.9));
}

.funky-logo:hover .logo-world {
    text-shadow: 0 0 25px rgba(189, 0, 255, 0.8),
                 0 0 50px rgba(189, 0, 255, 0.5);
}

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

.site-navigation a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.site-navigation a:hover {
    color: var(--solar-primary);
}

.site-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--solar-primary), var(--solar-accent));
    transition: width 0.3s ease;
}

.site-navigation a:hover::after {
    width: 100%;
}

.hero-section {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.85), rgba(10, 14, 39, 0.9)),
                url('/wp-content/uploads/2025/12/luzzu-cruises-banner.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 14, 39, 0.8) 100%);
    z-index: 1;
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--solar-primary), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.category-grid {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--card-bg);
    border-radius: 0;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 53, 0.2);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--solar-primary), var(--solar-accent));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.3);
    border-color: var(--solar-primary);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));
}

.category-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.category-count {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.category-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--solar-primary), var(--solar-accent));
    color: white;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.category-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.business-grid {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.business-card {
    background: var(--card-bg);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.3);
}

.business-thumbnail {
    height: 200px;
    background: linear-gradient(135deg, var(--solar-primary), var(--neon-blue));
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-content {
    padding: 1.5rem;
}

.business-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.business-excerpt {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.business-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.business-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.btn-contact {
    display: inline-block;
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, var(--solar-primary), var(--solar-accent));
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

/* Professional 3-Column Footer */
.site-footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--solar-primary);
    margin-top: 6rem;
    padding: 4rem 2rem 2rem;
    width: 100%;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid !important;
    grid-template-columns: 1.2fr 1fr 1fr !important;
    gap: 4rem;
    width: 100%;
}

/* Column 1: Branding */
.footer-branding {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem;
    padding-right: 2rem;
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--solar-primary), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
    line-height: 1;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

.footer-powered {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.5rem 0 0 0;
}

.footer-powered .gudtek-link {
    color: var(--neon-blue);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    border-bottom: 1px solid transparent;
}

.footer-powered .gudtek-link:hover {
    color: var(--neon-purple);
    border-bottom-color: var(--neon-purple);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 1.5rem 0 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    opacity: 0.8;
}

/* Column 2: Quick Links */
.footer-menu {
    display: flex !important;
    flex-direction: column !important;
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 2rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--solar-primary), var(--neon-blue));
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem;
}

.footer-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.footer-links li a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
    color: var(--solar-primary);
}

.footer-links li a:hover {
    color: var(--solar-primary);
    transform: translateX(0);
}

.footer-links li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Column 3: Social Media */
.footer-social {
    display: flex !important;
    flex-direction: column !important;
}

.social-links {
    display: flex !important;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.social-links a {
    width: 48px;
    height: 48px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--solar-primary), var(--neon-blue));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.social-links a svg {
    position: relative;
    z-index: 1;
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a:hover {
    color: white;
    border-color: var(--solar-primary);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.footer-contact {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.8;
}

.footer-contact strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 700;
}

.footer-contact a {
    color: var(--neon-blue);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
    border-bottom: 1px solid transparent;
}

.footer-contact a:hover {
    color: var(--solar-primary);
    border-bottom-color: var(--solar-primary);
}

/* Mobile Responsive Footer */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }

    .footer-social {
        grid-column: 1 / -1;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .site-footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-branding,
    .footer-menu,
    .footer-social {
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-links li a:hover {
        transform: none;
    }

    .social-links {
        justify-content: center;
    }
}

/* Mobile-first media queries */
@media (max-width: 768px) {
    /* Reduce all padding/margins for mobile-first approach */
    body {
        padding: 0 !important;
    }

    /* Hero sections with minimal padding */
    .hero-section {
        padding: 2rem 0.5rem !important;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Remove horizontal borders on mobile for full-width feel */
    section,
    article,
    .container {
        border-left: none !important;
        border-right: none !important;
    }

    /* Callback forms - reduce padding */
    .callback-content {
        padding: 1rem 0.5rem !important;
        gap: 1.5rem !important;
    }

    .callback-form-container {
        padding: 1.5rem !important;
        margin: 0 !important;
    }

    .callback-hero {
        min-height: auto !important;
        padding: 1rem 0 !important;
    }

    /* Forms should take full width on mobile */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    textarea,
    select {
        padding: 0.75rem !important;
    }

    .category-grid,
    .business-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .funky-logo {
        font-size: 1.75rem;
    }

    .site-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        width: 100%;
    }

    .site-navigation a {
        padding: 0.5rem 1rem;
        display: block;
        text-align: center;
    }

    .business-card {
        margin: 0 auto;
        max-width: 100%;
    }

    .business-content {
        padding: 1.25rem;
    }

    .category-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .funky-logo {
        font-size: 1.5rem;
    }

    .category-name {
        font-size: 1.3rem;
    }

    .business-title {
        font-size: 1.3rem;
    }
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy load optimization */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 0;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.theme-toggle svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(20deg);
}

/* Update header for light theme */
[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="light"] .site-navigation a {
    color: var(--text-primary);
}

/* Update cards for light theme */
[data-theme="light"] .business-card,
[data-theme="light"] .category-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .category-card .category-icon,
[data-theme="light"] .category-card .category-name,
[data-theme="light"] .category-card .category-count {
    text-shadow: none;
}

[data-theme="light"] .business-card:hover,
[data-theme="light"] .category-card:hover {
    box-shadow: 0 8px 30px var(--shadow-color);
}

/* Form styling for light theme */
[data-theme="light"] .callback-form-container {
    background: var(--bg-secondary) !important;
    box-shadow: 0 20px 60px var(--shadow-color) !important;
    border: 1px solid var(--border-color);
}

[data-theme="light"] .callback-form-container h3 {
    color: var(--text-primary) !important;
}

[data-theme="light"] .callback-form-container label {
    color: var(--text-primary) !important;
}

[data-theme="light"] .callback-form-container input,
[data-theme="light"] .callback-form-container textarea {
    background: var(--bg-primary) !important;
    border: 2px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* Hero section for light theme */
[data-theme="light"] .callback-hero {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 100%) !important;
}

[data-theme="light"] .hero-content,
[data-theme="light"] .callback-content {
    color: var(--text-primary);
}

/* Mobile responsive for theme toggle */
@media (max-width: 768px) {
    .theme-toggle {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        right: 1rem;
    }
    
    .theme-toggle svg {
        width: 24px;
        height: 24px;
    }
}
