/* PermaWiki Specific Styles */

/* Wiki Hero Section */
.wiki-hero {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c59 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.wiki-hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.wiki-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.wiki-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.wiki-nav-link {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wiki-nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Table of Contents */
.toc-section {
    padding: 60px 0;
    background: white;
}

.toc {
    max-width: 800px;
    margin: 0 auto;
    background: #f8fdf9;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.toc h2 {
    color: #2d5016;
    text-align: center;
    margin-bottom: 2rem;
}

.toc-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.toc-list li {
    padding: 0;
}

.toc-list a {
    display: block;
    padding: 15px 20px;
    background: white;
    color: #2d5016;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    border-left: 4px solid #4a7c59;
}

.toc-list a:hover {
    background: #4a7c59;
    color: white;
    transform: translateX(10px);
}

/* Wiki Sections */
.wiki-section {
    padding: 80px 0;
}

.wiki-section:nth-child(even) {
    background: #f8fdf9;
}

.wiki-section-title {
    color: #2d5016;
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
}

.wiki-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.wiki-text h3 {
    color: #2d5016;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.wiki-text h3:first-child {
    margin-top: 0;
}

.wiki-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.wiki-text ul {
    color: #666;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.wiki-text li {
    margin-bottom: 0.5rem;
}

/* Permaculture Flower Visualization */
.wiki-visual {
    position: sticky;
    top: 120px;
}

.permaculture-flower {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 2rem;
}

.flower-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a7c59, #6b8e64);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.flower-petal {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #e8f5e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid #4a7c59;
}

.flower-petal:hover {
    transform: scale(1.1);
    background: #4a7c59;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.flower-petal::after {
    content: attr(data-domain);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #2d5016;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 5px 10px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.flower-petal:hover::after {
    opacity: 1;
}

/* Position petals in a circle */
.flower-petal:nth-child(2) { top: 0; left: 50%; transform: translateX(-50%); }
.flower-petal:nth-child(3) { top: 25%; right: 0; }
.flower-petal:nth-child(4) { top: 50%; right: -15px; transform: translateY(-50%); }
.flower-petal:nth-child(5) { bottom: 25%; right: 0; }
.flower-petal:nth-child(6) { bottom: 0; left: 50%; transform: translateX(-50%); }
.flower-petal:nth-child(7) { bottom: 25%; left: 0; }
.flower-petal:nth-child(8) { top: 50%; left: -15px; transform: translateY(-50%); }
.flower-petal:nth-child(9) { top: 25%; left: 0; }

.visual-caption {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    font-style: italic;
    line-height: 1.5;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #4a7c59, #6b8e64);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4a7c59, #6b8e64);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 300px;
}

.timeline-content h3 {
    color: #2d5016;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

/* Founders */
.founders {
    margin-top: 4rem;
}

.founders h3 {
    color: #2d5016;
    text-align: center;
    margin-bottom: 3rem;
}

.founder-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.founder-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.founder-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a7c59, #6b8e64);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.founder-card h4 {
    color: #2d5016;
    margin-bottom: 1rem;
}

.founder-card p {
    color: #666;
    line-height: 1.6;
}

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

.principle-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-top: 4px solid #4a7c59;
}

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

.principle-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.principle-card h3 {
    color: #2d5016;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.principle-card p {
    color: #666;
    line-height: 1.6;
}

/* Ethics Grid */
.ethics-content {
    max-width: 1000px;
    margin: 0 auto;
}

.ethics-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.8;
}

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

.ethics-card {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 25px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.ethics-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.ethics-card h3 {
    color: #2d5016;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.ethics-card > p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.ethics-card ul {
    text-align: left;
    color: #666;
    margin-left: 2rem;
}

.ethics-card li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

/* Design Process */
.design-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4a7c59, #6b8e64);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.process-step h4 {
    color: #2d5016;
    margin-bottom: 1rem;
}

.process-step p {
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Zones Visualization */
.zones-visual {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    margin: 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.zone {
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.zone-0 { background: #2d5016; }
.zone-1 { background: #4a7c59; }
.zone-2 { background: #6b8e64; }
.zone-3 { background: #8fae7f; }
.zone-4 { background: #b3ce9a; }
.zone-5 { background: #d7eeb5; color: #2d5016; }

.zone:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.zone::after {
    content: attr(data-zone);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: #2d5016;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: white;
    padding: 5px 10px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.zone:hover::after {
    opacity: 1;
}

.zones-explanation {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 3rem;
    line-height: 1.6;
}

/* Techniques Grid */
.techniques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.technique-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.technique-card h3 {
    color: #2d5016;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.technique-card > p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.technique-details strong {
    color: #2d5016;
    display: block;
    margin-bottom: 1rem;
}

.technique-details ul {
    color: #666;
    margin-left: 1.5rem;
}

.technique-details li {
    margin-bottom: 0.5rem;
}

/* Examples Grid */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.example-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.example-card h3 {
    color: #2d5016;
    margin-bottom: 1.5rem;
}

.example-card p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.example-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.example-stats span {
    background: #f8fdf9;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #2d5016;
    font-weight: 500;
}

/* Resources */
.resources-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.resource-category {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.resource-category h3 {
    color: #2d5016;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-category ul {
    list-style: none;
}

.resource-category li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #666;
    line-height: 1.5;
}

.resource-category li:last-child {
    border-bottom: none;
}

/* Call to Action */
.cta-section {
    background: linear-gradient(135deg, #4a7c59, #6b8e64);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: #4a7c59;
}

/* Active nav link */
.nav-link.active {
    color: #4a7c59;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* Responsive Design for PermaWiki */
@media (max-width: 768px) {
    .wiki-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .wiki-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .wiki-content {
        grid-template-columns: 1fr;
    }
    
    .wiki-visual {
        position: static;
        order: -1;
    }
    
    .permaculture-flower {
        width: 250px;
        height: 250px;
    }
    
    .flower-center {
        width: 60px;
        height: 60px;
        font-size: 0.8rem;
    }
    
    .flower-petal {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        margin-left: 60px;
    }
    
    .timeline-year {
        width: 60px;
        height: 60px;
        font-size: 1rem;
        margin: 0 1rem 0 0;
    }
    
    .timeline-content {
        max-width: none;
    }
    
    .zones-visual {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .zone {
        font-size: 1.2rem;
    }
    
    .zone::after {
        font-size: 0.6rem;
        bottom: -35px;
    }
}