/* Landlord Stories Styles */

/* Base styles for when main CSS doesn't load */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header fallback */
.header {
    background: #1a365d;
    color: white;
    padding: 1rem 0;
}

.nav-brand h1 {
    margin: 0;
    font-size: 1.5rem;
}

.nav-brand p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
}

.cta-button {
    background: #2563eb;
    border-radius: 5px;
}

/* Breadcrumb */
.breadcrumb {
    background: #f8fafc;
    padding: 10px 0;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

/* Footer */
.footer {
    background: #1a365d;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: white;
}

.footer-section a {
    color: #e2e8f0;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #2d5a87;
    color: #e2e8f0;
}

/* Hero Section */
.landlord-stories-hero {
    background: linear-gradient(135deg, #1a365d 0%, #2d5a87 100%);
    color: white;
    padding: 60px 0;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.landlord-stories-hero .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.landlord-stories-hero .hero-content h2 {
    font-size: 1.8rem;
    color: #e2e8f0;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.hero-stats .stat {
    text-align: center;
}

.hero-stats .stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #fbbf24;
    display: block;
}

.hero-stats .stat-label {
    color: #e2e8f0;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Stories Grid */
.stories-section {
    padding: 80px 0;
    background: #f8fafc;
}

.stories-intro {
    text-align: center;
    margin-bottom: 60px;
}

.stories-intro h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1a365d;
}

.stories-intro p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.story-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.story-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.story-image {
    height: 250px;
    overflow: hidden;
}

.story-card.featured .story-image {
    height: auto;
}

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

.story-content {
    padding: 30px;
}

.story-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.story-category {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-category.repossession {
    background: #fecaca;
    color: #991b1b;
}

.story-category.tenants {
    background: #fed7aa;
    color: #ea580c;
}

.story-category.negative-equity {
    background: #fde68a;
    color: #d97706;
}

.story-category.downsizing {
    background: #bbf7d0;
    color: #15803d;
}

.story-category.inheritance {
    background: #ddd6fe;
    color: #7c3aed;
}

.story-category.retirement {
    background: #fce7f3;
    color: #be185d;
}

.story-location {
    color: #64748b;
    font-size: 0.9rem;
}

.story-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.story-content h3 a {
    color: #1a365d;
    text-decoration: none;
}

.story-content h3 a:hover {
    color: #2563eb;
}

.story-preview {
    margin-bottom: 20px;
}

.story-preview p {
    color: #64748b;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 0;
}

.story-outcome {
    margin-bottom: 20px;
}

.outcome-tag {
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
}

.outcome-tag.positive {
    background: #dcfce7;
    color: #15803d;
}

.story-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.read-time {
    color: #94a3b8;
    font-size: 0.9rem;
}

.read-story-btn {
    background: #2563eb;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.read-story-btn:hover {
    background: #1d4ed8;
}

/* Categories Section */
.categories-section {
    padding: 60px 0;
    background: white;
}

.categories-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #1a365d;
}

.story-categories {
    max-width: 800px;
    margin: 0 auto;
}

.category-filter h3 {
    margin-bottom: 20px;
    color: #374151;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.category-tag {
    padding: 10px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-tag:hover,
.category-tag.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

/* Individual Story Page Styles */
.story-hero {
    background: linear-gradient(135deg, #1a365d 0%, #2d5a87 100%);
    color: white;
    padding: 40px 0;
}

.story-hero-content {
    margin-bottom: 30px;
}

.story-hero .story-meta {
    margin-bottom: 20px;
}

.story-hero .story-meta span {
    color: #e2e8f0;
}

.story-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.story-subtitle {
    font-size: 1.3rem;
    color: #e2e8f0;
    margin-bottom: 30px;
}

.story-outcome-hero {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.outcome-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.outcome-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #fbbf24;
    margin-bottom: 5px;
}

.outcome-label {
    color: #e2e8f0;
    font-size: 0.9rem;
}

.story-hero-image {
    text-align: center;
}

.story-hero-image img {
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Story Content */
.story-content {
    padding: 80px 0;
}

.story-main {
    max-width: 800px;
    margin: 0 auto;
    padding-right: 350px;
}

.story-section {
    margin-bottom: 60px;
}

.story-section h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #1a365d;
}

.story-text {
    line-height: 1.8;
}

.story-quote {
    background: #f1f5f9;
    border-left: 4px solid #2563eb;
    padding: 20px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: #475569;
}

.crisis-timeline,
.solution-breakdown {
    background: #f8fafc;
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
}

.timeline-item,
.solution-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-date {
    font-weight: bold;
    color: #2563eb;
    min-width: 80px;
}

.timeline-event {
    color: #475569;
}

.struggle-stats,
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.struggle-item,
.result-item {
    text-align: center;
    padding: 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.struggle-number,
.result-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #dc2626;
    margin-bottom: 5px;
}

.result-item.success .result-number {
    color: #16a34a;
}

.struggle-label,
.result-label {
    color: #475569;
    font-weight: 500;
}

.result-note {
    display: block;
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 5px;
}

/* Sidebar */
.story-sidebar {
    position: fixed;
    right: 50px;
    top: 200px;
    width: 280px;
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

.sidebar-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-card h3 {
    color: #1a365d;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.sidebar-card ul {
    list-style: none;
    padding: 0;
}

.sidebar-card li {
    padding: 8px 0;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-card li:last-child {
    border-bottom: none;
}

.cta-card {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
}

.cta-card h3 {
    color: white;
}

.sidebar-cta-btn {
    background: white;
    color: #2563eb;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: block;
    text-align: center;
    margin: 15px 0;
}

.sidebar-note {
    font-size: 0.9rem;
    color: #e2e8f0;
    text-align: center;
}

/* Related Stories */
.related-stories {
    background: #f8fafc;
    padding: 60px 0;
}

.related-stories h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #1a365d;
}

.related-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-story {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-story img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-story h3 {
    padding: 20px 20px 10px;
    margin: 0;
    font-size: 1.1rem;
}

.related-story h3 a {
    color: #1a365d;
    text-decoration: none;
}

.related-story p {
    padding: 0 20px 20px;
    color: #64748b;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .story-main {
        padding-right: 0;
    }
    
    .story-sidebar {
        position: static;
        width: 100%;
        margin-top: 40px;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .story-card.featured {
        grid-column: span 1;
        display: block;
    }
    
    .hero-stats,
    .story-outcome-hero {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .struggle-stats,
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .related-stories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tags {
        justify-content: flex-start;
    }
    
    .story-hero h1 {
        font-size: 2rem;
    }
}