/* Smart Agriculture Technology Archive Page Styles */

/* Archive Hero Section */
.tech-archive-hero-section {
    background: #53834f;
    padding: 4rem 0 3rem;
    text-align: center;
}

.tech-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.tech-archive-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #ffffff;
    margin: 0 0 1.5rem 0;
    letter-spacing: 0.05em;
}

.tech-archive-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-archive-description {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 18px;
    color: #42210b;
    line-height: 1.8;
    margin: 0;
}

/* Search Section */
.tech-archive-search-section {
    background: #FBF9F4;
    padding: 3rem 0 4rem;
}

/* Search Form */
.tech-search-form-figma {
    max-width: 1400px;
    margin: 0 auto;
}

/* Filter Row */
.tech-filter-row-figma {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

/* Filter Group */
.tech-filter-group-figma {
    display: flex;
    flex-direction: column;
}

/* Filter Label */
.tech-filter-label-figma {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

/* Select Box */
.tech-select-figma {
    width: 100%;
    padding: 14px 40px 14px 18px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 16px;
    color: #333;
    background-color: white;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1" stroke="%236B8E6F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tech-select-figma:hover {
    border-color: #6B8E6F;
    background-color: #F9F9F9;
}

.tech-select-figma:focus {
    outline: none;
    border-color: #6B8E6F;
    box-shadow: 0 0 0 3px rgba(107, 142, 111, 0.1);
}

/* Search Button Container */
.tech-search-button-container-figma {
    text-align: center;
    margin-top: 2rem;
}

/* Search Button */
.tech-search-button-figma {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.tech-search-button-figma:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.tech-search-button-img-figma {
    display: block;
    width: 300px;
    max-width: 100%;
    height: auto;
}

.tech-clear-filter-container {
    text-align: center;
    margin-top: 1.5rem;
}

.tech-clear-filter-link {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    color: white;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 14px;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tech-clear-filter-link:hover {
    background: white;
    color: #42210b;
}

/* Results Section */
.tech-archive-results-section {
    background: #FBF9F4;
    padding: 3rem 0;
}

.tech-active-filters {
    background: #f8f9fa;
    border-left: 4px solid #53834f;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.active-filters-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #42210b;
    margin: 0 0 1rem 0;
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.active-filter-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #53834f;
    border-radius: 20px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 14px;
    color: #42210b;
}

.active-filter-tag strong {
    color: #53834f;
    margin-right: 0.25rem;
}

/* Results Info */
.tech-results-info {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e6ae25;
}

.results-count {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 16px;
    color: #42210b;
    font-weight: 600;
    margin: 0;
}

/* Technology Cards - Archive specific */
.tech-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.tech-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 12px;
    border-radius: 12px;
    font-weight: 600;
}

.category-tag {
    background: #e3f2fd;
    color: #1976d2;
}

.work-tag {
    background: #f3e5f5;
    color: #7b1fa2;
}

.effect-tag {
    background: #e8f5e9;
    color: #388e3c;
}

/* No Results */
.tech-no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 2rem 0;
}

.no-results-message {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 24px;
    color: #42210b;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.no-results-suggestion {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 16px;
    color: #666;
    margin: 0 0 2rem 0;
}

.back-to-all-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: #53834f;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    transition: all 0.3s ease;
}

.back-to-all-link:hover {
    background: #4a7546;
    transform: translateY(-2px);
}

/* Pagination */
.tech-pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.tech-pagination .page-numbers {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.tech-pagination .page-numbers li {
    list-style: none;
}

.tech-pagination .page-numbers a,
.tech-pagination .page-numbers span {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 2px solid #e6ae25;
    color: #42210b;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tech-pagination .page-numbers a:hover {
    background: #e6ae25;
    color: white;
}

.tech-pagination .page-numbers .current {
    background: #53834f;
    border-color: #53834f;
    color: white;
}

/* CTA Section */
.tech-archive-cta-section {
    background: linear-gradient(135deg, #53834f 0%, #6da568 100%);
    padding: 4rem 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: white;
    margin: 0 0 1rem 0;
}

.cta-description {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 16px;
    color: white;
    line-height: 1.8;
    margin: 0 0 2rem 0;
}

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

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.primary-button {
    background: white;
    color: #53834f;
    border: 2px solid white;
}

.primary-button:hover {
    background: transparent;
    color: white;
}

.secondary-button {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.secondary-button:hover {
    background: white;
    color: #53834f;
}

/* Responsive Design */
@media (max-width: 992px) {
    
    .tech-cards-container-figma {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tech-archive-description {
        font-size: 16px;
    }
    
    .tech-filter-row-figma {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .tech-filter-label-figma {
        font-size: 16px;
    }
    
    .tech-select-figma {
        font-size: 15px;
        padding: 12px 35px 12px 16px;
    }
    
    .tech-search-button-img-figma {
        width: 100%;
        max-width: 300px;
    }
    
    .tech-cards-container-figma {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

/* ============================================
   Single Tech Detail Page Styles
   ============================================ */

/* Breadcrumb */
.breadcrumb-section {
    background: #f8f9fa;
    padding: 1rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #53834f;
    text-decoration: none;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 14px;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #4a7546;
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #999;
}

.breadcrumb-current {
    color: #42210b;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 14px;
}

/* Single Tech Header */
.single-tech-header-section {
    background: #53834f;
    padding: 3rem 0;
}

.tech-header-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tech-header-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 14px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.single-tech-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 42px;
    color: #42210b;
    margin: 0 0 1.5rem 0;
    line-height: 1.4;
}

.single-tech-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 14px;
    color: #42210b;
}

.meta-icon {
    margin-right: 0.25rem;
}

/* Featured Image */
.single-tech-featured-image {
    padding: 2rem 0;
}

.featured-image-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.featured-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Main Content Section */
.single-tech-content-section {
    padding: 3rem 0;
}

.single-tech-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.single-tech-article {
    min-width: 0; /* Prevent grid blowout */
}

.tech-content {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 3rem;
}

.tech-content h2 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #42210b;
    margin: 2.5rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #e6ae25;
}

.tech-content h3 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #42210b;
    margin: 2rem 0 1rem 0;
}

.tech-content p {
    margin: 0 0 1.5rem 0;
}

.tech-content ul,
.tech-content ol {
    margin: 0 0 1.5rem 2rem;
}

.tech-content li {
    margin-bottom: 0.5rem;
}

.tech-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Technology Details Box */
.tech-details-box {
    background: #f8f9fa;
    border: 2px solid #e6ae25;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.details-box-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #42210b;
    margin: 0 0 1.5rem 0;
}

.details-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #53834f;
}

.detail-value {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 16px;
    color: #333;
}

/* Share Section */
.tech-share-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.share-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #42210b;
    margin: 0 0 1rem 0;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #42210b;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-button:hover {
    border-color: #53834f;
    background: #53834f;
    color: white;
    transform: translateY(-2px);
}

.share-icon {
    font-size: 18px;
}

/* Sidebar */
.single-tech-sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.sidebar-widget {
    background: white;
    border: 2px solid #e6ae25;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.widget-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #42210b;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e6ae25;
}

/* Related Technologies */
.related-tech-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-tech-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.related-tech-item:hover {
    background: #e6ae25;
    transform: translateX(5px);
}

.related-tech-thumbnail {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

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

.related-tech-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a90e2 0%, #7ed321 100%);
}

.related-tech-info {
    flex: 1;
    min-width: 0;
}

.related-tech-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #42210b;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.related-tech-excerpt {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.no-related-tech {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 14px;
    color: #999;
    text-align: center;
    padding: 1rem;
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, #53834f 0%, #6da568 100%);
    border-color: #53834f;
}

.cta-widget .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.widget-description {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 14px;
    color: white;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
}

.widget-cta-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: white;
    color: #53834f;
    text-align: center;
    text-decoration: none;
    border-radius: 25px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.widget-cta-button:hover {
    background: #42210b;
    color: white;
    transform: translateY(-2px);
}

/* Navigation Widget */
.navigation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navigation-list li {
    margin-bottom: 0.75rem;
}

.navigation-list li:last-child {
    margin-bottom: 0;
}

.navigation-list a {
    display: block;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    color: #42210b;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
}

.navigation-list a:hover {
    background: #e6ae25;
    color: white;
    transform: translateX(5px);
}

/* Post Navigation */
.single-tech-navigation {
    background: #f8f9fa;
    padding: 2rem 0;
    margin-top: 3rem;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 2px solid #e6ae25;
    border-radius: 8px;
    text-decoration: none;
    color: #42210b;
    transition: all 0.3s ease;
}

.nav-link:hover:not(.nav-disabled):not(.back-link) {
    background: #e6ae25;
    color: white;
    transform: translateY(-2px);
}

.nav-link.prev-link {
    justify-content: flex-start;
}

.nav-link.next-link {
    justify-content: flex-end;
}

.nav-link.back-link {
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    text-align: center;
    background: #53834f;
    border-color: #53834f;
    color: white;
}

.nav-link.back-link:hover {
    background: #4a7546;
    border-color: #4a7546;
}

.nav-link.nav-disabled {
    opacity: 0;
    pointer-events: none;
}

.nav-arrow {
    font-size: 24px;
    flex-shrink: 0;
}

.nav-icon {
    font-size: 24px;
}

.nav-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-label {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.8;
}

.nav-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
    font-size: 14px;
}

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

/* Responsive Design for Single Page */
@media (max-width: 992px) {
    .single-tech-layout {
        grid-template-columns: 1fr;
    }
    
    .single-tech-sidebar {
        position: static;
    }
    
    .single-tech-title {
        font-size: 32px;
    }
    
    .detail-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .single-tech-title {
        font-size: 28px;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .nav-link.prev-link,
    .nav-link.next-link {
        flex-direction: column;
        text-align: center;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-button {
        width: 100%;
        justify-content: center;
    }
}

