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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #061E29;
    background: #F3F4F4;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, #061E29 0%, #1D546D 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(6, 30, 41, 0.2);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #5F9598;
}

/* Blog Header */
.blog-hero {
    background: linear-gradient(135deg, #061E29 0%, #1D546D 100%);
    color: white;
    padding: 8rem 2rem 3rem;
    margin-top: 60px;
}

.blog-hero-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.blog-category-badge {
    display: inline-block;
    background: #5F9598;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.blog-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-top: 1rem;
    font-weight: 400;
}

.blog-meta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Blog Content */
.blog-content {
    max-width: 1300px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: white;
}

.blog-intro {
    font-size: 1.2rem;
    color: #1D546D;
    padding: 2rem;
    background: #F3F4F4;
    border-left: 4px solid #5F9598;
    border-radius: 5px;
    margin-bottom: 3rem;
    font-style: italic;
}

.blog-content h2 {
    font-size: 2rem;
    color: #1D546D;
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #5F9598;
}

.blog-content h3 {
    font-size: 1.5rem;
    color: #061E29;
    margin: 2rem 0 1rem;
}

.blog-content p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: #061E29;
    opacity: 0.9;
}

.blog-content strong {
    color: #1D546D;
    font-weight: 600;
}

/* Context Comparison Cards */
.context-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.context-card {
    background: #F3F4F4;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(6, 30, 41, 0.08);
    border-top: 4px solid #5F9598;
}

.context-card.filter {
    border-top-color: #1D546D;
}

.context-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.context-card h3 {
    font-size: 1.8rem;
    color: #061E29;
    margin: 0 0 1rem 0;
}

.context-card .analogy {
    background: white;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    font-style: italic;
    color: #1D546D;
}

.context-list {
    list-style: none;
    padding: 0;
}

.context-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: #061E29;
    border-bottom: 1px solid rgba(29, 84, 109, 0.1);
}

.context-list li:last-child {
    border-bottom: none;
}

.context-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #5F9598;
    font-weight: bold;
    font-size: 1.5rem;
}

.context-list strong {
    color: #1D546D;
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, #1D546D 0%, #5F9598 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 5px 20px rgba(29, 84, 109, 0.3);
}

.highlight-box h3 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

.highlight-box p {
    color: white;
    opacity: 0.95;
    margin: 0;
}

.highlight-box ul {
    color: white;
    margin-top: 1rem;
}

.highlight-box ul li {
    color: white;
}

.highlight-box strong {
    color: white;
}

/* Visual Example Box */
.visual-example {
    background: #F3F4F4;
    padding: 2rem;
    border-radius: 10px;
    margin: 2rem 0;
    border: 2px solid #5F9598;
}

.visual-example h4 {
    color: #1D546D;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Table */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(6, 30, 41, 0.1);
}

.example-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    box-shadow: 0 3px 10px rgba(6, 30, 41, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.example-table th {
    background: #1D546D;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.example-table td {
    padding: 1rem;
    border-bottom: 1px solid #F3F4F4;
}

.example-table tr:last-child td {
    border-bottom: none;
}

.example-table tr:hover {
    background: #F3F4F4;
}

/* Context Transition Flow */
.transition-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2rem 0;
    padding: 2rem;
    background: #F3F4F4;
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 1rem;
}

.flow-step {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(6, 30, 41, 0.08);
}

.flow-step h4 {
    color: #1D546D;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flow-step p {
    color: #061E29;
    margin: 0;
    font-size: 0.95rem;
}

.flow-arrow {
    font-size: 2rem;
    color: #5F9598;
    font-weight: bold;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 5px 20px rgba(6, 30, 41, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.comparison-table thead {
    background: linear-gradient(135deg, #061E29 0%, #1D546D 100%);
    color: white;
}

.comparison-table th {
    padding: 1.2rem;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 1.2rem;
    border-bottom: 1px solid #F3F4F4;
}

.comparison-table tbody tr:hover {
    background: #F3F4F4;
}

.comparison-table td:first-child {
    font-weight: 600;
    color: #1D546D;
}

/* Pro Tip Box */
.pro-tip {
    background: #FFF8E1;
    border-left: 4px solid #FFB300;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 5px;
}

.pro-tip strong {
    color: #FF8F00;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.pro-tip p {
    margin: 0;
    color: #5D4037;
}

/* Share Section */
.share-section {
    background: #F3F4F4;
    padding: 2rem;
    border-radius: 10px;
    margin: 3rem 0;
    text-align: center;
}

.share-section h3 {
    color: #1D546D;
    margin-bottom: 1rem;
}

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

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.share-btn.linkedin {
    background: #0077B5;
    color: white;
}

.share-btn.twitter {
    background: #1DA1F2;
    color: white;
}

.share-btn.facebook {
    background: #1877F2;
    color: white;
}

/* Back to Blog */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #5F9598;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: #1D546D;
}

/* Footer */
footer {
    background: #061E29;
    color: white;
    text-align: center;
    padding: 2rem;
}

footer p {
    color: rgba(243, 244, 244, 0.8);
}

/* ============================================
   STORAGE MODE PAGE SPECIFIC STYLES
   ============================================ */

/* Mode Badges */
.mode-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
}

.mode-badge.import,
.import-mode {
    background: linear-gradient(135deg, #5F9598 0%, #7AB5B8 100%);
    color: white;
}

.mode-badge.directquery,
.directquery-mode {
    background: linear-gradient(135deg, #1D546D 0%, #2A6B8A 100%);
    color: white;
}

.mode-badge.dual,
.dual-mode {
    background: linear-gradient(135deg, #061E29 0%, #1D546D 100%);
    color: white;
}

.mode-badge.composite {
    background: linear-gradient(135deg, #5F9598 0%, #1D546D 100%);
    color: white;
}

/* Default Badge */
.default-badge, 
.realtime-badge, 
.hybrid-badge {
    display: block;
    font-size: 0.7rem;
    margin-top: 0.3rem;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

/* Status Badges */
.status {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.85rem;
}

.status.excellent {
    background: #4CAF50;
    color: white;
}

.status.good {
    background: #8BC34A;
    color: white;
}

.status.poor {
    background: #FF9800;
    color: white;
}

/* Detailed Modes Table */
.detailed-modes-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.detailed-modes-table thead th {
    background: linear-gradient(135deg, #061E29 0%, #1D546D 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.mode-header-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.mode-header-cell i {
    font-size: 1.5rem;
}

.category-col {
    width: 20%;
    background: #F3F4F4;
}

.import-col {
    background: #7AB5B8;
}

.directquery-col {
    background: #2A6B8A;
}

.dual-col {
    background: #1D546D;
}

.detailed-modes-table tbody td {
    padding: 1.2rem;
    border-bottom: 1px solid #F3F4F4;
    vertical-align: top;
}

.category-cell {
    background: #F3F4F4;
    font-weight: 600;
    color: #1D546D;
}

.section-header {
    background: linear-gradient(135deg, #061E29 0%, #1D546D 100%);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.section-header td {
    padding: 1rem 1.2rem;
}

.benefit-cell {
    background: #E8F5E9;
    color: #2E7D32;
}

.neutral-cell {
    background: #FFF9C4;
    color: #F57F17;
}

.bottleneck-cell {
    background: #FFEBEE;
    color: #C62828;
}

.when-cell {
    line-height: 1.8;
}

.example-cell {
    background: #F3F4F4;
    font-style: italic;
}

.description-row td {
    background: white;
}

/* Composite Example Content */
.composite-example-content {
    padding: 0;
}

.composite-table-row {
    display: grid;
    grid-template-columns: 250px 150px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #F3F4F4;
    border-radius: 8px;
    margin-bottom: 1rem;
    align-items: center;
}

.table-name {
    font-weight: 600;
    color: #1D546D;
    font-size: 1.05rem;
}

.storage-mode {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    text-align: center;
    color: white;
}

.table-details {
    color: #061E29;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Limit Badges */
.limit-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-block;
}

.limit-badge.pro {
    background: #FF9800;
    color: white;
}

.limit-badge.ppu {
    background: #2196F3;
    color: white;
}

.limit-badge.fabric {
    background: #4CAF50;
    color: white;
}

.limit-badge.desktop {
    background: #9E9E9E;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .context-cards {
        grid-template-columns: 1fr;
    }

    .transition-flow {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.8rem;
    }

    .blog-intro {
        padding: 1.5rem;
        font-size: 1.05rem;
    }

    .blog-content {
        padding: 1.5rem 1rem;
    }

    .blog-content h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem;
    }

    .context-card {
        padding: 1.5rem;
    }

    .share-buttons {
        gap: 0.8rem;
    }

    .share-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .example-table th,
    .example-table td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .visual-example {
        padding: 1.5rem;
    }

    .highlight-box {
        padding: 1.5rem;
    }
    
    .section-nav {
        margin: 0 -1.5rem 2rem -1.5rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-link {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .composite-table-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .detailed-modes-table {
        font-size: 0.9rem;
    }
    
    .detailed-modes-table th,
    .detailed-modes-table td {
        padding: 0.8rem;
    }
    
    .mode-header-cell {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.5rem 0;
    }

    nav {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #061E29 0%, #1D546D 100%);
        padding: 1.5rem;
        gap: 1rem;
        width: 100%;
        z-index: 999;
    }

    nav ul.active {
        display: flex;
    }

    nav li {
        width: 100%;
    }

    nav a {
        display: block;
        padding: 0.5rem 0;
    }

    .menu-toggle {
        display: flex;
    }

    .blog-hero {
        padding: 6rem 1rem 2rem;
        margin-top: 50px;
    }

    .blog-hero h1 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .blog-category-badge {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 0.3rem;
        font-size: 0.85rem;
    }

    .blog-intro {
        padding: 1rem;
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .blog-content {
        padding: 1rem;
    }

    .blog-content h2 {
        font-size: 1.3rem;
        margin: 1.5rem 0 0.8rem;
        padding-bottom: 0.3rem;
    }

    .blog-content h3 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.8rem;
    }

    .blog-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .context-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .context-card {
        padding: 1.2rem;
    }

    .context-icon {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }

    .context-card h3 {
        font-size: 1.5rem;
        margin: 0 0 0.8rem 0;
    }

    .context-list li {
        padding: 0.6rem 0 0.6rem 1.8rem;
        font-size: 0.9rem;
    }

    .transition-flow {
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
        margin: 1.5rem 0;
    }

    .flow-step {
        padding: 1rem;
    }

    .flow-step h4 {
        font-size: 0.8rem;
    }

    .flow-step p {
        font-size: 0.85rem;
    }

    .flow-arrow {
        font-size: 1.5rem;
        transform: rotate(90deg);
    }

    .example-table {
        margin: 1.5rem 0;
    }

    .example-table th,
    .example-table td {
        padding: 0.6rem;
        font-size: 0.8rem;
    }

    .comparison-table {
        margin: 1.5rem 0;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.6rem;
        font-size: 0.8rem;
    }

    .visual-example {
        padding: 1.2rem;
        margin: 1.5rem 0;
    }

    .visual-example h4 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .highlight-box {
        padding: 1.2rem;
        margin: 1.5rem 0;
    }

    .highlight-box h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .pro-tip {
        padding: 1.2rem;
        margin: 1.5rem 0;
    }

    .pro-tip strong {
        font-size: 1rem;
    }

    .share-section {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .share-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .share-buttons {
        gap: 0.5rem;
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        justify-content: center;
    }

    .back-link {
        font-size: 0.9rem;
    }

    footer {
        padding: 1.5rem;
    }

    footer p {
        font-size: 0.9rem;
    }
    
    .section-nav {
        margin: 0 -1rem 2rem -1rem;
        top: 60px;
    }
    
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .nav-link i {
        font-size: 1rem;
    }
    
    .blog-subtitle {
        font-size: 1rem;
    }
    
    .detailed-modes-table {
        font-size: 0.8rem;
    }
    
    .detailed-modes-table th,
    .detailed-modes-table td {
        padding: 0.6rem;
    }
    
    .mode-badge,
    .storage-mode,
    .limit-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
}
