* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #fff;
    color: #1d1d1f;
    line-height: 1.6;
}

.futuristic-text-gradient {
    background: linear-gradient(90deg, #007aff 0%, #5856d6 25%, #af52de 50%, #ff3b30 75%, #ff9500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header */
.blog-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 9999;
    padding: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.logo {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 20px;
    margin-right: 40px;
}

.nav-links a {
    color: black;
    text-decoration: none;
    font-size: 12px;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s;
}

.nav-links a:hover {
    border-bottom: 2px solid black;
}

/* Main */
.blog-main {
    max-width: 100%;
    margin: 0 auto;
    padding: 80px 40px 0;
}

.blog-main .main-layout-container {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-height: 100vh;
}

.blog-main .ad-skyscraper-left,
.blog-main .ad-skyscraper-right {
    position: -webkit-sticky;
    position: sticky;
    top: 80px;
    align-self: flex-start;
    z-index: 100;
    height: fit-content;
}



.main-content-column {
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .main-content-column {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
    }
}

@media (min-width: 769px) {
    .main-layout-container {
        gap: 60px !important;
        display: flex !important;
        align-items: flex-start !important;
        min-height: 100vh !important;
    }
    
    .ad-skyscraper-left,
    .ad-skyscraper-right {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 80px !important;
        align-self: flex-start !important;
        z-index: 100 !important;
        height: fit-content !important;
    }
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 80px 0 60px;
}

.hero-section h1 {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #007aff 0%, #5856d6 25%, #af52de 50%, #ff3b30 75%, #ff9500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section p {
    font-size: 21px;
    color: #1d1d1f;
    font-weight: 400;
}

/* Filter Section */
.filter-section {
    padding: 40px 0;
    border-bottom: 1px solid #d2d2d7;
}

.filter-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .filter-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.filter-btn {
    background: #f5f5f7;
    border: 2px solid transparent;
    color: #1d1d1f;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 0;
}

@media (max-width: 768px) {
    .filter-btn {
        width: 100%;
    }
}

.filter-btn:hover {
    background: #e8e8ed;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.filter-btn.active {
    background: var(--btn-color, #0071e3);
    border-color: var(--btn-color, #0071e3);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.filter-btn[data-category="updates"]:hover {
    box-shadow: 0 6px 16px rgba(88, 86, 214, 0.3);
}

.filter-btn[data-category="updates"].active {
    background: linear-gradient(135deg, #5856d6 0%, #af52de 100%);
    box-shadow: 0 8px 20px rgba(88, 86, 214, 0.5);
}

.filter-btn[data-category="features"]:hover {
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.3);
}

.filter-btn[data-category="features"].active {
    background: linear-gradient(135deg, #007aff 0%, #00d4aa 100%);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.5);
}

.filter-btn[data-category="stories"]:hover {
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.3);
}

.filter-btn[data-category="stories"].active {
    background: linear-gradient(135deg, #ff6b35 0%, #ff3b30 100%);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.5);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    padding: 60px 0 100px;
}

.post-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.post-card[data-category="updates"]:hover {
    box-shadow: 0 20px 60px rgba(88, 86, 214, 0.5);
}

.post-card[data-category="features"]:hover {
    box-shadow: 0 20px 60px rgba(0, 212, 170, 0.5);
}

.post-card[data-category="stories"]:hover {
    box-shadow: 0 20px 60px rgba(175, 82, 222, 0.5);
}

.post-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}



.post-content {
    padding: 16px;
}

.post-category {
    font-size: 12px;
    color: #0071e3;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 8px;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: -0.5px;
    color: #1d1d1f;
}

.post-excerpt {
    font-size: 13px;
    color: #6e6e73;
    margin-bottom: 12px;
    line-height: 1.5;
}

.post-date {
    font-size: 13px;
    color: #86868b;
}

/* Footer */
.microsoft-footer {
    background: #2F2F2F;
    color: #FFFFFF;
    padding: 40px 0 0 0;
    margin-top: 60px;
}

.microsoft-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section {
    text-align: center;
}

.footer-section h4 {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #CCCCCC;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #007aff;
}

.footer-bottom {
    border-top: 1px solid #444444;
    padding: 20px 0 0 0;
    text-align: center;
}

.footer-bottom p {
    color: #CCCCCC;
    font-size: 0.8rem;
    margin: 0;
}

.social-media-section {
    text-align: center;
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.instagram-icon {
    color: #E4405F !important;
}

.fa-twitter {
    color: #1DA1F2 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-nav {
        padding: 16px 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .hero-section h1 {
        font-size: 40px;
    }

    .hero-section p {
        font-size: 18px;
    }

    .blog-main {
        padding: 0;
    }
    
    .blog-main .main-layout-container {
        padding: 0;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .main-content-column > div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}


.language-selector {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: black;
}

.language-selector a {
    color: black;
    text-decoration: none;
    font-size: 12px;
}

.hamburger-menu {
    display: none;
}

.hamburger-icon {
    position: relative;
    width: 20px;
    height: 16px;
}

.hamburger-icon span,
.hamburger-icon::before,
.hamburger-icon::after {
    position: absolute;
    width: 20px;
    height: 2px;
    background: #000;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger-icon span {
    top: 7px;
}

.hamburger-icon::before {
    content: '';
    top: 0;
}

.hamburger-icon::after {
    content: '';
    top: 14px;
}

.hamburger-menu.active .hamburger-icon span {
    opacity: 0;
}

.hamburger-menu.active .hamburger-icon::before {
    transform: rotate(45deg);
    top: 7px;
}

.hamburger-menu.active .hamburger-icon::after {
    transform: rotate(-45deg);
    top: 7px;
}

.navigation-wrapper {
    display: flex;
}

.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 99997;
    padding: 80px 0 20px 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-nav-menu.active {
    right: 0;
}

.mobile-nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.mobile-nav-menu li {
    margin-bottom: 0;
    width: 100%;
}

.mobile-nav-menu a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
}

.mobile-nav-menu a:hover {
    background: #007aff;
    color: white;
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex !important;
        position: absolute !important;
        top: 50% !important;
        right: 40px !important;
        transform: translateY(-50%) !important;
        z-index: 99999 !important;
        background: none !important;
        border: none !important;
        cursor: pointer !important;
    }

    .navigation-wrapper {
        display: none !important;
    }

    .blog-main {
        padding: 80px 20px 0;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Post Modal */
.post-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow-y: auto;
}

.post-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 40px;
    border-radius: 18px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

.post-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: 300;
    color: #86868b;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s;
}

.post-modal-close:hover {
    color: #1d1d1f;
}

.post-modal-category {
    font-size: 12px;
    color: #0071e3;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 12px;
}

.post-modal-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    color: #1d1d1f;
}

.post-modal-date {
    font-size: 14px;
    color: #86868b;
    margin-bottom: 24px;
    display: block;
}

.post-modal-content-text {
    font-size: 18px;
    line-height: 1.6;
    color: #1d1d1f;
}

@media (max-width: 768px) {
    .post-modal-content {
        margin: 10% auto;
        padding: 30px 20px;
        width: 95%;
    }
    
    .post-modal-title {
        font-size: 28px;
    }
    
    .post-modal-content-text {
        font-size: 16px;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 40px 0;
}

.pagination-btn {
    background: transparent;
    border: 1px solid #d2d2d7;
    color: #1d1d1f;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 44px;
}

.pagination-btn:hover {
    background: #f5f5f7;
}

.pagination-btn.active {
    background: #0071e3;
    border-color: #0071e3;
    color: #fff;
}

@media (max-width: 768px) {
    .pagination {
        padding: 30px 0;
    }
    
    .pagination-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 40px;
    }
}
