/* ==========================================
   SWIEG.COM - Australian Themed Styles
   ========================================== */

/* CSS Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Australian Earthy Color Palette */
    --primary-green: #2d5016;
    --dark-green: #1a3009;
    --eucalyptus: #4a7c3f;
    --eucalyptus-light: #6b9e5f;
    --gold: #d4a017;
    --gold-light: #e6b82a;
    --gold-dark: #b8890f;
    --red-earth: #8b4513;
    --red-earth-light: #a0522d;
    --red-earth-dark: #6b3410;
    --cream: #f5f0e1;
    --cream-dark: #e8e0c8;
    --sand: #d4c4a8;
    --white: #ffffff;
    --text-dark: #2c2c2c;
    --text-light: #5a5a5a;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--cream);
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--dark-green);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1em;
    color: var(--text-light);
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold);
}

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

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    box-shadow: 0 2px 10px var(--shadow-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

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

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--gold-light);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--eucalyptus) 50%, var(--gold) 100%);
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

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

.hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    color: var(--cream);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-icons {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gold);
    color: var(--dark-green);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
}

.btn-secondary {
    background: var(--eucalyptus);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--eucalyptus-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-green);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--gold);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-dark);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 10px;
}

/* Tool Cards */
.tool-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 15px var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.tool-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.tool-card-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.tool-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.tool-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* Generator Section */
.generator-section {
    background: var(--white);
    padding: 60px 20px;
    margin: 40px 0;
    border-radius: 20px;
    box-shadow: 0 5px 30px var(--shadow);
}

.generator-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-green);
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--sand);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--white);
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--gold);
}

.generator-output {
    background: var(--cream);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    border: 2px dashed var(--gold);
}

.output-field {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--sand);
}

.output-field:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.output-label {
    font-weight: 600;
    color: var(--primary-green);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.output-value {
    font-size: 1.2rem;
    color: var(--text-dark);
}

/* Ad Container */
.ad-container {
    background: var(--cream);
    border: 1px dashed var(--sand);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    margin: 30px 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-container-horizontal {
    background: var(--cream);
    border: 1px dashed var(--sand);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin: 20px 0;
    min-height: 90px;
}

.google-ad {
    max-width: 100%;
}

/* Articles */
.article-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

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

.article-content {
    padding: 20px;
}

.article-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.article-content p {
    font-size: 0.95rem;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

/* Content Sections */
.section {
    padding: 60px 20px;
}

.section-alt {
    background: var(--cream);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    color: var(--white);
    padding: 60px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

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

.footer-col a {
    color: var(--cream);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    color: var(--cream);
    font-size: 0.9rem;
}

/* 404 Page */
.error-page {
    text-align: center;
    padding: 100px 20px;
}

.error-icon {
    font-size: 6rem;
    margin-bottom: 20px;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--sand);
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 20px;
    font-family: inherit;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}

/* Breadcrumb */
.breadcrumb {
    padding: 20px 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--eucalyptus);
}

.breadcrumb span {
    margin: 0 10px;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary-green);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 5px 20px var(--shadow-dark);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tool-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 50px 20px;
    }

    .section {
        padding: 40px 15px;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Print Styles */
@media print {
    .navbar, .footer, .ad-container {
        display: none;
    }
}

/* Article Page Styles */
.article-full {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 0;
}

.article-full h1 {
    color: var(--primary-green);
    font-size: 2rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.article-full .article-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--cream-dark);
}

.article-full .article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    padding: 0;
}

.article-full .article-content p {
    margin-bottom: 1.2em;
    text-align: justify;
}

.article-full .article-content img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 12px;
    margin: 20px 0;
}

.article-full .article-content a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
}

.article-full .article-content a:hover {
    text-decoration: underline;
}

.article-full .article-content h2 {
    color: var(--dark-green);
    font-size: 1.5rem;
    margin: 30px 0 15px;
    padding-top: 15px;
}

.article-full .article-content ul,
.article-full .article-content ol {
    margin: 15px 0 20px 25px;
}

.article-full .article-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.related-tools {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--gold);
}

.related-tools h3 {
    color: var(--primary-green);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.related-tools .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.related-articles {
    margin-top: 30px;
    padding: 20px;
    background: var(--cream);
    border-radius: 12px;
}

.related-articles h3 {
    color: var(--primary-green);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.related-articles a {
    display: block;
    color: var(--text-dark);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid var(--cream-dark);
}

.related-articles a:hover {
    color: var(--primary-green);
}

/* Contact form */
.contact-form {
    max-width: 600px;
    margin: 30px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--sand);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

/* Not found */
.not-found {
    text-align: center;
    padding: 100px 20px;
}

.not-found h1 {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.not-found p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Responsive article */
@media (max-width: 768px) {
    .article-full {
        padding: 20px 0;
    }
    .article-full h1 {
        font-size: 1.5rem;
    }
    .article-full .article-content {
        font-size: 1rem;
    }
}
