/*
Theme Name: Moontopia Child - Viking Automation
Description: Child theme of Moontopia for TheVikingAutomation.com
Template: moontopia
Version: 1.0.0
Author: Daan van der Velden - The Viking Automation
Author URI: https://thevikingautomation.com
Text Domain: moontopia-child
*/

/* ==========================================================================
   THE VIKING AUTOMATION - MOONTOPIA CHILD THEME
   ========================================================================== */

/* REMOVED @import - This can block plugin scripts */
/* Parent styles are loaded via functions.php */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Custom Variables */
:root {
    --n8n-dark: #1a1a1a;
    --n8n-sidebar: #2d2d2d;
    --viking-blue: #2e6b8f;
    --viking-green: #4a7c3a;
    --viking-brown: #8b6f3a;
    --n8n-pink: #ff6d6d;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --border-color: #404040;
    --success-green: #28a745;
}

/* Viking Automation Brand Colors */
.viking-automation {
    --primary-color: var(--viking-blue);
    --secondary-color: var(--viking-green);
    --accent-color: var(--n8n-pink);
    --dark-bg: var(--n8n-dark);
    --light-bg: var(--n8n-sidebar);
}

/* Custom Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
}

/* Custom Button Styles */
.viking-btn,
.btn-viking {
    background: linear-gradient(135deg, var(--viking-blue), var(--viking-green));
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(46, 107, 143, 0.3);
}

.viking-btn:hover,
.btn-viking:hover {
    background: linear-gradient(135deg, var(--n8n-pink), var(--viking-blue));
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 109, 109, 0.4);
    color: white;
}

.viking-btn.secondary,
.btn-viking.secondary {
    background: transparent;
    border: 2px solid var(--viking-blue);
    color: var(--viking-blue);
}

.viking-btn.secondary:hover,
.btn-viking.secondary:hover {
    background: var(--viking-blue);
    color: white;
}

/* Custom Card Styles */
.viking-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid #e8f4f8;
}

.viking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--viking-blue);
}

/* Dark Theme Cards */
.viking-card.dark {
    background: var(--n8n-sidebar);
    color: var(--text-white);
    border-color: var(--border-color);
}

/* Custom Section Styling */
.viking-section {
    padding: 80px 0;
}

.viking-section.dark {
    background: var(--n8n-dark);
    color: var(--text-white);
}

.viking-section.gray {
    background: var(--n8n-sidebar);
    color: var(--text-white);
}

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

.viking-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.viking-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Custom Header Overrides */
.site-header {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.site-title a,
.site-description {
    color: var(--text-white) !important;
}

.main-navigation ul li a {
    color: var(--text-gray) !important;
    transition: color 0.3s ease;
}

.main-navigation ul li a:hover {
    color: var(--viking-blue) !important;
}

/* Custom Footer Overrides */
.site-footer {
    background: var(--n8n-sidebar);
    color: var(--text-gray);
    border-top: 1px solid var(--border-color);
}

.site-footer h1, .site-footer h2, .site-footer h3, 
.site-footer h4, .site-footer h5, .site-footer h6 {
    color: var(--text-white);
}

.site-footer a {
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--viking-blue);
}

/* Custom Widget Styles */
.widget {
    background: transparent;
    border: none;
    padding: 1.5rem 0;
}

.widget-title {
    color: var(--viking-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Blog Post Styling */
.entry-header .entry-title {
    color: var(--viking-blue);
    font-weight: 700;
}

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

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

.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
    color: var(--viking-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Custom Blockquote */
blockquote {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f8fa 100%);
    border-left: 4px solid var(--viking-blue);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    font-style: italic;
}

blockquote p {
    margin: 0;
    color: #666;
}

/* Custom Forms */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
textarea,
select {
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    border-color: var(--viking-blue);
    box-shadow: 0 0 0 3px rgba(46, 107, 143, 0.1);
    outline: none;
}

/* Custom Tables */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 2rem 0;
}

th, td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #e1e5e9;
}

th {
    background: var(--viking-blue);
    color: white;
    font-weight: 600;
}

tr:nth-child(even) {
    background: #f8f9fa;
}

tr:hover {
    background: rgba(46, 107, 143, 0.05);
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

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

.text-white { color: var(--text-white) !important; }
.text-gray { color: var(--text-gray) !important; }
.text-blue { color: var(--viking-blue) !important; }
.text-green { color: var(--viking-green) !important; }

.bg-dark { background-color: var(--n8n-dark) !important; }
.bg-gray { background-color: var(--n8n-sidebar) !important; }
.bg-blue { background-color: var(--viking-blue) !important; }
.bg-green { background-color: var(--viking-green) !important; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

/* Responsive Design */
@media (max-width: 768px) {
    .viking-grid,
    .viking-grid-2,
    .viking-grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .viking-btn,
    .btn-viking {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .viking-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .viking-section {
        padding: 50px 0;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}