/* Homepage Specific Styles */

/* Hero Section - Sadece Ana Sayfa İçin */
.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.info-box h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #fff;
}

.info-box p {
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 200px;
    text-align: center;
}

.btn-primary {
    background: #fff;
    color: #2c5530;
    border-color: #fff;
}

.btn-primary:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature p {
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Posts Section */
.posts-section {
    flex: 1;
}

.section-title {
    font-size: 2rem;
    color: #2c5530;
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
}

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

/* Post Cards */
.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid #E91E63;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #4CAF50;
}

.post-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card-image img[src*="placeholder"] {
    object-fit: contain;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-title {
    margin-bottom: 0.8rem;
}

.post-card-title a {
    text-decoration: none;
    color: #2c5530;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    display: block;
    transition: color 0.3s ease;
}

.post-card-title a:hover {
    color: #4CAF50;
}

.post-card-meta {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.post-card-meta time {
    display: inline-flex;
    align-items: center;
}

.post-card-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    margin-top: auto;
}

.read-more:hover {
    color: #2c5530;
}

/* AdSense Areas - Homepage */
.ad-middle {
    margin: 3rem 0;
    min-height: 120px;
}

/* Sidebar Widgets - Homepage */

/* Search Widget - EXACT MATCH OTHER WIDGETS */
.search-widget {
    background: #f8f9fa !important;
    border: 1px solid rgba(76, 175, 80, 0.15) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem !important;
    margin-top: 0 !important;
    transition: all 0.3s ease !important;
}

.search-widget:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.search-container {
    background: transparent !important;
    border-radius: 8px;
    border: none !important;
    overflow: hidden;
}

.search-form {
    display: flex;
    align-items: stretch;
    gap: 8px !important;
}


.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid rgba(76, 175, 80, 0.3) !important;
    border-radius: 8px !important;
    outline: none;
    font-size: 14px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #333 !important;
    height: 44px !important;
    box-sizing: border-box !important;
    max-width: calc(100% - 90px) !important;
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    background: #4CAF50 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: background 0.3s ease !important;
    min-width: 80px !important;
    max-width: 80px !important;
    width: 80px !important;
    height: 44px !important;
    white-space: nowrap !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 999 !important;
    flex-shrink: 0 !important;
}

.search-button:hover {
    background: #45a049;
}

.search-button:focus {
    outline: 2px solid #4CAF50;
    outline-offset: -2px;
}

/* Popular Topics - CSS moved to sidebar.php for consistency */

/* Recent Posts */
.recent-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recent-post-item {
    display: flex;
    gap: 0.8rem;
    padding: 0.8rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.recent-post-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.recent-post-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
}

.recent-post-content a {
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recent-post-content a:hover {
    color: #4CAF50;
}

.recent-post-date {
    font-size: 0.75rem;
    color: #999;
    font-weight: 400;
}

.health-tips {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tip {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #eee;
}

.tip h4 {
    font-size: 0.95rem;
    color: #2c5530;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.tip p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* Weather Widget - Consistent with other widgets */
.weather-widget {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.weather-widget h3 {
    background: linear-gradient(135deg, #4CAF50 0%, #2c5530 100%);
    margin: 0;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    border: none;
}

.weather-container {
    padding: 1.5rem;
    background: #fff;
}

.weather-today {
    margin-bottom: 1.5rem;
}

.weather-header {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #666;
}

.weather-info {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.weather-location {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2c5530;
}

.weather-temp {
    font-weight: 800;
    font-size: 1.8rem;
    color: #4CAF50;
    margin-right: 0.5rem;
}

.weather-desc {
    font-size: 0.95rem;
    font-weight: 500;
    color: #666;
}

.weather-suggestion {
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    margin-top: 1rem;
    border: 1px solid #eee;
}

.suggestion-arrow {
    font-weight: bold;
    color: #4CAF50;
    font-size: 1.2rem;
    line-height: 1;
    margin-right: 0.8rem;
    margin-top: 0.2rem;
    float: left;
}

.suggestion-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
    font-weight: 500;
}

/* Responsive Design - Homepage */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.2rem;
    }
    
    .hero-section .description {
        font-size: 1rem;
    }
    
    .info-boxes {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-box {
        padding: 1.5rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.6rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-section .description {
        font-size: 0.95rem;
    }
    
    .info-box {
        padding: 1.2rem;
    }
    
    .info-box h3 {
        font-size: 1.1rem;
    }
    
    .feature {
        padding: 1.2rem;
    }
    
    .feature h3 {
        font-size: 1.1rem;
    }
    
    .post-card-image {
        height: 160px;
    }
    
    .post-card-content {
        padding: 1.2rem;
    }
    
    .post-card-title a {
        font-size: 1.1rem;
    }
    
    
    .search-input {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .search-button {
        padding: 10px 20px;
        font-size: 0.85rem;
        min-width: 55px;
    }
    
    .recent-post-image {
        width: 50px;
        height: 50px;
    }
    
    .recent-post-content a {
        font-size: 0.85rem;
    }
    
    .recent-post-date {
        font-size: 0.7rem;
    }
    
    .weather-widget h3 {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }
    
    .weather-container {
        padding: 1.2rem;
    }
    
    .weather-info {
        gap: 0.5rem;
        align-items: center;
    }
    
    .weather-temp {
        font-size: 1.5rem;
    }
    
    .weather-location {
        font-size: 1rem;
    }
    
    .weather-desc {
        font-size: 0.85rem;
    }
    
    .weather-suggestion {
        padding: 1rem;
    }
    
    .suggestion-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .suggestion-arrow {
        font-size: 1rem;
        margin-right: 0.6rem;
    }
}

/* Loading Animation */
.posts-grid {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Hover Effects */
.post-card {
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.1), transparent);
    transition: left 0.5s ease;
}

.post-card:hover::before {
    left: 100%;
}

/* Focus States */
.post-card:focus-within {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

.read-more:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Search Page Styles */
.search-header {
    text-align: center;
    margin-bottom: 2rem;
}

.search-info {
    color: #666;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.search-form-container {
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.main-search-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #eee;
}

.search-input-group {
    display: flex;
    align-items: stretch;
}

.main-search-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    color: #333;
}

.main-search-input::placeholder {
    color: #999;
}

.main-search-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 16px 24px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s ease;
    border-left: 1px solid #eee;
    min-width: 100px;
}

.main-search-button:hover {
    background: #45a049;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.search-result-item {
    display: flex;
    gap: 1.5rem;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.search-result-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f9fa;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.search-result-title {
    margin-bottom: 0.8rem;
}

.search-result-title a {
    text-decoration: none;
    color: #2c5530;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.search-result-title a:hover {
    color: #4CAF50;
}

.search-result-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.search-result-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.no-results {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-results h2 {
    color: #2c5530;
    margin-bottom: 1rem;
}

.search-suggestions {
    margin-top: 2rem;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.search-suggestions h3 {
    color: #2c5530;
    margin-bottom: 1rem;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
}

.search-suggestions li {
    padding: 0.5rem 0;
    color: #666;
}

.search-suggestions li:before {
    content: "💡 ";
    margin-right: 0.5rem;
}

.search-welcome {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-welcome h2 {
    color: #2c5530;
    margin-bottom: 1rem;
}

.popular-searches {
    margin-top: 2rem;
}

.popular-searches h3 {
    color: #2c5530;
    margin-bottom: 1rem;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.search-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #2c5530;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.search-tag:hover {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
    transform: translateY(-2px);
}

/* Suggested Content - İlginizi Çekebilir */
.suggested-content {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #eee;
}

.suggested-content h3 {
    text-align: center;
    color: #2c5530;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.suggested-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.suggested-post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.suggested-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.suggested-post-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f8f9fa;
}

.suggested-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.suggested-post-card:hover .suggested-post-image img {
    transform: scale(1.05);
}

.suggested-post-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.suggested-post-content h4 {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.suggested-post-content h4 a {
    text-decoration: none;
    color: #2c5530;
    font-weight: 600;
    transition: color 0.3s ease;
}

.suggested-post-content h4 a:hover {
    color: #4CAF50;
}

.suggested-post-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-small {
    color: #4CAF50;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
    margin-top: auto;
}

.read-more-small:hover {
    color: #2c5530;
}

/* Suggested Content Responsive */
@media (max-width: 768px) {
    .suggested-posts {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .suggested-content {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .suggested-content h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .suggested-post-image {
        height: 160px;
    }
    
    .suggested-post-content {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .suggested-content {
        padding: 1rem;
    }
    
    .suggested-post-content h4 {
        font-size: 1rem;
    }
    
    .suggested-post-image {
        height: 140px;
    }
}

/* Search Page Responsive */
@media (max-width: 768px) {
    .search-result-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-result-image {
        width: 100%;
        height: 200px;
    }
    
    .search-result-title a {
        font-size: 1.2rem;
    }
    
    .main-search-input {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
    
    .main-search-button {
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    
    .search-tags {
        gap: 0.5rem;
    }
    
    .search-tag {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}
