/* Kullanıcı Rızası Banner Stilleri */
#consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2c3e50;
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    z-index: 10000;
    display: none;
    font-family: Arial, sans-serif;
}
#consent-banner.show {
    display: block;
}
.consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.consent-text {
    flex: 1;
    min-width: 250px;
}
.consent-text p {
    margin: 0;
    line-height: 1.5;
}
.consent-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.consent-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
}
.consent-btn-accept {
    background-color: #27ae60;
    color: white;
}
.consent-btn-accept:hover {
    background-color: #229954;
}
.consent-btn-decline {
    background-color: #7f8c8d;
    color: white;
}
.consent-btn-decline:hover {
    background-color: #95a5a6;
}
@media (max-width: 768px) {
    .consent-content {
        flex-direction: column;
        text-align: center;
    }
    .consent-buttons {
        width: 100%;
        justify-content: center;
    }
    .consent-btn {
        flex: 1;
        min-width: 120px;
    }
}

/* Dil Seçici Stilleri */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-label {
    color: #95a5a6;
    font-size: 0.9rem;
    margin: 0;
}

.language-selector select {
    padding: 6px 12px;
    border: 1px solid #34495e;
    border-radius: 5px;
    background-color: #34495e;
    color: #ecf0f1;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.language-selector select:hover {
    border-color: #4a5f7a;
    background-color: #4a5f7a;
}

.language-selector select:focus {
    outline: none;
    border-color: #667eea;
    background-color: #4a5f7a;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
.main-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: opacity 0.3s, transform 0.2s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.nav-more-container {
    position: relative;
}

.nav-more-link {
    cursor: pointer;
}

.nav-more-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: rgba(102, 126, 234, 0.95);
    backdrop-filter: blur(10px);
    list-style: none;
    margin: 0;
    padding: 10px 0;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    margin-top: 5px;
}

.nav-more-container:hover .nav-more-dropdown,
.nav-more-dropdown.show {
    display: block;
}

.nav-more-dropdown li {
    margin: 0;
}

.nav-more-dropdown .nav-link {
    display: block;
    padding: 10px 20px;
    white-space: nowrap;
}

.nav-more-dropdown .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: none;
}

.nav-menu-mobile {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Footer Styles */
.main-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    margin-top: 4rem;
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-image {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.footer-section h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* Footer PWA Install Button - Mobile Only */
.pwa-install-button-footer {
    display: none;
    margin-top: 1.5rem;
}

/* Show footer button on mobile when displayed */
@media (max-width: 768px) {
    .pwa-install-button-footer[style*="display: block"],
    .pwa-install-button-footer.show {
        display: block !important;
    }
}

.pwa-install-btn-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
    max-width: 200px;
}

.pwa-install-btn-footer:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.pwa-install-btn-footer:active {
    transform: translateY(0);
}

.pwa-install-btn-footer svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.pwa-install-btn-footer span {
    white-space: nowrap;
}

/* Hide footer button on desktop */
@media (min-width: 769px) {
    .pwa-install-button-footer {
        display: none !important;
    }
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: #95a5a6;
    font-size: 0.9rem;
    margin: 0;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .logo-image {
        width: 35px;
        height: 35px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 0.75rem 0;
        overflow: visible;
    }
    
    .header-container {
        flex-wrap: wrap;
        position: relative;
        overflow: visible;
    }
    
    .main-nav {
        width: 100%;
        margin-top: 1rem;
        position: relative;
        display: flex;
        align-items: flex-start;
        justify-content: flex-end;
        overflow: visible;
    }
    
    .nav-menu {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 1;
        z-index: 1001;
    }
    
    .nav-menu-mobile {
        display: none;
        flex-direction: column;
        width: calc(100vw - 40px);
        max-width: 400px;
        gap: 0;
        padding: 10px 0;
        list-style: none;
        margin: 0;
        position: absolute;
        top: calc(100% + 15px);
        right: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        overflow: hidden;
        order: 2;
        min-height: 50px;
    }
    
    .nav-menu-mobile.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-menu-mobile li {
        margin: 0;
        width: 100%;
        display: block;
    }
    
    .nav-menu-mobile .nav-link {
        padding: 0.75rem 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        display: block;
        width: 100%;
        color: white !important;
        text-decoration: none;
        font-weight: 500;
    }
    
    .nav-menu-mobile .nav-link:hover,
    .nav-menu-mobile .nav-link:focus {
        background-color: rgba(255, 255, 255, 0.15);
        color: white !important;
    }
    
    .nav-menu-mobile li:last-child .nav-link {
        border-bottom: none;
    }
    
    .nav-menu-mobile:empty::before {
        content: "No categories available";
        padding: 1rem 20px;
        color: rgba(255, 255, 255, 0.7);
        font-style: italic;
    }
    
    .nav-more-dropdown {
        position: static;
        display: none;
        background-color: rgba(255, 255, 255, 0.1);
        margin-top: 0;
        padding-left: 20px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .language-selector {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo-image {
        width: 30px;
        height: 30px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .footer-logo-image {
        width: 30px;
        height: 30px;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
}

/* Category Page Header Styles */
.category-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 20px;
    margin-bottom: 30px;
}

.category-header-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.category-description {
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .category-header {
        padding: 25px 15px;
    }
    
    .category-title {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .category-description {
        font-size: 0.95rem;
    }
}

/* Landing Page Posts Grid Styles */
.posts-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.post-card {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Kare yapmak için */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.post-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.post-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.post-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    padding: 20px 15px 15px;
    color: white;
}

.post-overlay::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px);
    z-index: -1;
}

.post-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    font-size: 1.2rem;
}

/* Landing Page Responsive Design */
@media (max-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .posts-grid-container {
        padding: 20px 15px;
    }
    
    .post-title {
        font-size: 1rem;
    }
    
    .category-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Pagination Styles */
.pagination-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-link {
    padding: 10px 20px;
    background-color: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.pagination-link:hover {
    background-color: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.pagination-info {
    padding: 10px 20px;
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .pagination {
        gap: 8px;
    }
    
    .pagination-link {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .pagination-info {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Post Detail Page Styles */
.post-detail-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    grid-template-rows: auto 1fr;
    gap: 40px;
    align-items: start;
}

.post-detail-container {
    max-width: 100%;
    grid-column: 1;
    grid-row: 1 / -1;
}

.post-header {
    margin-bottom: 30px;
}

.post-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.post-meta span {
    padding: 5px 12px;
    background-color: #f5f5f5;
    border-radius: 20px;
}

.post-category {
    background-color: #667eea !important;
    color: white !important;
    font-weight: 600;
}

.post-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
    color: #2c3e50;
}

.post-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.post-cover-image {
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
}

.post-cover-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin: 40px 0;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
}

.post-content h1 {
    font-size: 2rem;
}

.post-content h2 {
    font-size: 1.75rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content h4 {
    font-size: 1.25rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

.post-content code {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-content pre {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.post-content pre code {
    background-color: transparent;
    padding: 0;
}

.post-content a {
    color: #667eea;
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.post-content table th,
.post-content table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.post-content table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.post-content hr {
    border: none;
    border-top: 2px solid #eee;
    margin: 30px 0;
}

.post-tags {
    margin: 40px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.post-tags h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
}

.tags-list {
    font-size: 0.9rem;
    color: #666;
}

.recent-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}

.recent-posts h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.recent-post-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recent-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.recent-post-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.recent-post-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.recent-post-card h3 {
    padding: 15px;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

/* Post Share Buttons */
.post-share-buttons {
    margin: 40px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.post-share-buttons h3 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.share-buttons-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    color: white;
}

.share-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.share-btn-facebook {
    background-color: #1877f2;
}

.share-btn-facebook:hover {
    background-color: #166fe5;
    transform: translateY(-2px);
}

.share-btn-twitter {
    background-color: #1da1f2;
}

.share-btn-twitter:hover {
    background-color: #1a91da;
    transform: translateY(-2px);
}

.share-btn-linkedin {
    background-color: #0077b5;
}

.share-btn-linkedin:hover {
    background-color: #006399;
    transform: translateY(-2px);
}

.share-btn-whatsapp {
    background-color: #25d366;
}

.share-btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
}

.share-btn-copy {
    background-color: #667eea;
}

.share-btn-copy:hover {
    background-color: #5568d3;
    transform: translateY(-2px);
}

/* Post Sidebar */
.post-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    align-self: start;
    grid-row: 2;
}

.post-sidebar h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.sidebar-posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-post-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.sidebar-post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sidebar-post-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.sidebar-post-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.sidebar-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sidebar-post-item:hover .sidebar-post-image img {
    transform: scale(1.05);
}

.sidebar-post-content {
    padding: 15px;
}

.sidebar-post-category {
    display: inline-block;
    padding: 4px 10px;
    background-color: #667eea;
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.sidebar-post-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Post Detail Responsive Design */
@media (max-width: 1200px) {
    .post-detail-wrapper {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }
}

@media (max-width: 968px) {
    .post-detail-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 40px;
    }
    
    .post-detail-container {
        grid-row: 1;
    }
    
    .post-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
        grid-row: 2;
        grid-column: 1;
    }
    
    .sidebar-posts-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }
    
    .post-subtitle {
        font-size: 1.1rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .recent-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .sidebar-posts-list {
        grid-template-columns: 1fr;
    }
    
    .share-buttons-list {
        flex-direction: column;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .post-detail-wrapper {
        padding: 20px 15px;
    }
    
    .share-btn span {
        display: none;
    }
    
    .share-btn {
        justify-content: center;
        padding: 12px;
    }
}

/* Email Subscription Form Styles */
.email-subscription-form {
    margin-top: 1rem;
}

.email-input-wrapper {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.email-input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 1px solid #34495e;
    border-radius: 5px;
    background-color: #34495e;
    color: #ecf0f1;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.email-input::placeholder {
    color: #95a5a6;
}

.email-input:focus {
    outline: none;
    border-color: #667eea;
    background-color: #3d5168;
}

.email-submit-btn {
    padding: 0.75rem 1.5rem;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.email-submit-btn:hover:not(:disabled) {
    background-color: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(102, 126, 234, 0.3);
}

.email-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.subscription-message {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: slideDown 0.3s ease-out;
}

.subscription-message.success {
    background-color: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.subscription-message.error {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .email-input-wrapper {
        flex-direction: column;
    }
    
    .email-input {
        width: 100%;
    }
    
    .email-submit-btn {
        width: 100%;
    }
}

/* PWA Install Button Styles */
.pwa-install-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: none;
    animation: slideInUp 0.3s ease-out;
}

.pwa-install-button.show {
    display: flex;
}

.pwa-install-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Hide PWA button on desktop, show only on mobile */
@media (min-width: 769px) {
    .pwa-install-button {
        display: none !important;
    }
}

/* Show PWA button on mobile when .show class is present */
@media (max-width: 768px) {
    .pwa-install-button.show {
        display: flex;
    }
}

.pwa-install-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    font-family: inherit;
}

.pwa-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.pwa-install-btn:active {
    transform: translateY(0);
}

.pwa-install-btn svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.pwa-install-btn span {
    white-space: nowrap;
}

/* PWA Install Close Button */
.pwa-install-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #ffffff;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pwa-install-close:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.pwa-install-close:active {
    transform: scale(0.95);
}

.pwa-install-close svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.5;
}

/* PWA Install Message */
.pwa-message {
    position: fixed;
    bottom: 90px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9998;
    max-width: 300px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: slideInUp 0.3s ease-out;
}

.pwa-message-success {
    background-color: #27ae60;
    color: #ffffff;
}

.pwa-message-error {
    background-color: #e74c3c;
    color: #ffffff;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile adjustments for PWA button */
@media (max-width: 768px) {
    .pwa-install-button {
        bottom: 80px;
        right: 15px;
        left: 15px;
        justify-content: center;
    }
    
    .pwa-install-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    
    .pwa-message {
        bottom: 150px;
        right: 15px;
        left: 15px;
        max-width: none;
    }
}

/* Hide PWA button when consent banner is visible */
#consent-banner.show ~ #pwa-install-button {
    bottom: 100px;
}

@media (max-width: 768px) {
    #consent-banner.show ~ #pwa-install-button {
        bottom: 180px;
    }
}

