/* Responsive Typography Page Specific Styles */
.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
/* SVG styles */
svg {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
}

.loading-bar {
    animation: loadingAnimation 2s infinite linear;
}

@keyframes loadingAnimation {
    0% { width: 0; }
    100% { width: 200px; }
}

/* Design 1: Mobile-First Design */
.design-1 {
    width: 100%;
}

.mobile-first-container {
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.device-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #eee;
}

.device-button {
    padding: 8px 15px;
    border-radius: 20px;
    background-color: #eee;
    color: #555;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.device-button.active {
    background-color: #4a6fa5;
    color: white;
}

.device-frame {
    display: none;
    padding: 0;
    min-height: 300px;
}

.device-frame.active {
    display: block;
}

.mobile-view {
    max-width: 280px;
    margin: 20px auto 0;
    border: 8px solid #ddd;
    border-radius: 20px;
    padding: 12px;
    overflow: hidden;
}

.tablet-view {
    max-width: 450px;
    margin: 20px auto 0;
    border: 10px solid #ddd;
    border-radius: 8px;
    padding: 15px;
}

.desktop-view {
    max-width: 100%;
    margin: 20px auto 0;
    border: 15px solid #ddd;
    border-radius: 5px;
    padding: 20px;
}

.mobile-first-content {
    padding: 10px;
    text-align: center;
}

.mobile-image {
    height: 200px;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.mobile-first-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.mobile-first-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.mobile-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4a6fa5;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mobile-button:hover {
    background-color: #3a5a8a;
}

.tablet-layout {
    display: flex;
    gap: 15px;
}

.tablet-size {
    flex: 1;
    margin-bottom: 0;
}

.tablet-text {
    flex: 1;
    text-align: left;
}

.desktop-layout {
    display: flex;
    gap: 20px;
}

.desktop-text {
    flex: 1.5;
    text-align: left;
}

.desktop-size {
    flex: 1;
    margin-bottom: 0;
    height: auto;
}

/* Design 2: Fluid Typography */
.design-2 {
    width: 100%;
}

.fluid-container {
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.fluid-image {
    height: 200px;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.fluid-content {
    padding: 20px;
}

.fluid-title {
    font-family: 'Montserrat', sans-serif;
    font-size: calc(1.2rem + 0.5vw);
    font-weight: 600;
    margin-bottom: 15px;
    color: #4a6fa5;
    transition: font-size 0.3s ease;
}

.fluid-text {
    font-family: 'Open Sans', sans-serif;
    font-size: calc(0.9rem + 0.2vw);
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
    transition: font-size 0.3s ease;
}

.resize-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background-color: #f1f5f9;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #64748b;
}

.resize-indicator i {
    margin-right: 8px;
    animation: expandCollapse 2s infinite ease-in-out;
}

@keyframes expandCollapse {
    0%, 100% { transform: scaleX(1); }
    50% { transform: scaleX(1.5); }
}

/* Design 3: Adaptive Layouts */
.design-3 {
    width: 100%;
}

.adaptive-container {
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.adaptive-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #eee;
}

.adaptive-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.viewport-selector {
    display: flex;
    gap: 8px;
}

.viewport-button {
    padding: 6px 12px;
    background-color: #eee;
    color: #555;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.viewport-button.active {
    background-color: #4a6fa5;
    color: white;
}

.adaptive-content {
    display: none;
    padding: 20px;
}

.adaptive-content.active {
    display: block;
}

.adaptive-item {
    margin-bottom: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.adaptive-image {
    height: 150px;
    background-color: #f1f5f9;
    overflow: hidden;
}

.adaptive-text {
    padding: 15px;
}

.adaptive-text h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #3a5a8a;
}

.adaptive-text p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: #666;
}

.adaptive-grid-medium {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.medium-item {
    margin: 0;
}

.adaptive-grid-large {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-post {
    display: flex;
    background-color: #fff7ed;
    padding: 0;
    gap: 0;
}

.large-featured {
    height: 250px;
    width: 40%;
}

.featured-text {
    width: 60%;
    padding: 20px;
    position: relative;
}

.featured-label {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 4px 8px;
    background-color: #f97316;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    color: #f97316;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #ea580c;
}

/* Design 4: Responsive Image Strategy */
.design-4 {
    width: 100%;
}

.image-strategy-container {
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.strategy-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #eee;
}

.strategy-button {
    padding: 8px 15px;
    border-radius: 20px;
    background-color: #eee;
    color: #555;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.strategy-button.active {
    background-color: #3b82f6;
    color: white;
}

.strategy-demo {
    display: none;
    padding: 20px;
}

.strategy-demo.active {
    display: block;
}

.strategy-header {
    margin-bottom: 15px;
}

.strategy-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.strategy-header p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: #666;
}

.demo-viewport {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 20px;
}

.image-with-text {
    text-align: center;
}

.strategy-image {
    height: 200px;
    background-color: #f1f5f9;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.strategy-caption {
    padding: 10px;
}

.strategy-caption p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: #334155;
    font-style: italic;
}

/* Design 5: Responsive Typography System */
.design-5 {
    width: 100%;
}

.type-system-container {
    width: 100%;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.viewport-demo {
    padding: 15px;
}

.viewport-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 15px;
    background-color: #f5f5f5;
    border-radius: 25px;
}

.viewport-btn {
    padding: 6px 15px;
    border-radius: 20px;
    background-color: transparent;
    color: #555;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.viewport-btn.active {
    background-color: #0ea5e9;
    color: white;
}

.viewport-frame {
    display: none;
    padding: 15px;
}

.viewport-frame.active {
    display: block;
}

.phone-frame {
    max-width: 320px;
    margin: 0 auto;
    background-color: #f0f9ff;
    border-radius: 15px;
    padding: 15px;
}

.tablet-frame {
    max-width: 540px;
    margin: 0 auto;
    background-color: #f0f9ff;
    border-radius: 10px;
    padding: 20px;
}

.desktop-frame {
    background-color: #f0f9ff;
    border-radius: 8px;
    padding: 25px;
}

.type-hierarchy {
    font-family: 'Montserrat', sans-serif;
}

.heading-1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0c4a6e;
    line-height: 1.2;
}

.heading-2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0369a1;
    line-height: 1.3;
}

.heading-3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0284c7;
    line-height: 1.4;
}

.body-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: #334155;
    line-height: 1.5;
}

.caption {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.75rem;
    color: #64748b;
    font-style: italic;
}

.tablet-type .heading-1 {
    font-size: 2rem;
}

.tablet-type .heading-2 {
    font-size: 1.5rem;
}

.tablet-type .heading-3 {
    font-size: 1.2rem;
}

.tablet-type .body-text {
    font-size: 0.95rem;
    line-height: 1.6;
}

.tablet-type .caption {
    font-size: 0.8rem;
}

.desktop-type .heading-1 {
    font-size: 2.5rem;
}

.desktop-type .heading-2 {
    font-size: 1.8rem;
}

.desktop-type .heading-3 {
    font-size: 1.4rem;
}

.desktop-type .body-text {
    font-size: 1rem;
    line-height: 1.7;
}

.desktop-type .caption {
    font-size: 0.85rem;
}

/* Responsive Media Queries */
@media (max-width: 767px) {
    .featured-post {
        flex-direction: column;
    }
    .page-title {
        font-size: 1.8rem;
    }
    .desktop-layout, .tablet-layout {
        flex-direction: column;
    }

    .desktop-size, .tablet-size, .desktop-text, .tablet-text {
        width: 100%;
    }

    .adaptive-grid-medium {
        grid-template-columns: 1fr;
    }

    .adaptive-header {
        flex-direction: column;
        gap: 10px;
    }

    .strategy-selector {
        flex-wrap: wrap;
    }

    .large-featured {
        width: 100%;
        height: 180px;
    }

    .featured-text {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .adaptive-grid-medium {
        grid-template-columns: repeat(2, 1fr);
    }
}
