/* Home Page Styles */

body {
    background-color: #1a1a1a;
    color: #fff;
    padding-top: 50px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
}

/* Navigation styling */
.navbar-inverse {
    background-color: rgba(26, 26, 26, 0.95);
    border-color: #000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-inverse .navbar-brand {
    color: #fff;
    font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 300;
    font-size: 18px;
}

.navbar-inverse .navbar-nav > li > a {
    color: #888;
    font-weight: 300;
}

.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus {
    color: #fff;
    background-color: transparent;
}

.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
    color: #fff;
    background-color: #000;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    min-height: 400px;
    max-height: 700px;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.2) 0%,
        rgba(26, 26, 26, 0.4) 50%,
        rgba(26, 26, 26, 0.9) 100%
    );
}

.hero-content {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

.hero-date {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #6db3f2;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 48px;
    font-weight: 200;
    margin: 0;
    line-height: 1.2;
}

.hero-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-title a:hover {
    color: #6db3f2;
}

/* Hero Pagination */
.hero-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.hero-dot.active {
    background: #6db3f2;
    transform: scale(1.2);
}

/* Hero Navigation */
.hero-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
    pointer-events: none;
}

.hero-prev,
.hero-next {
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    opacity: 0;
}

.hero-section:hover .hero-prev,
.hero-section:hover .hero-next {
    opacity: 1;
}

.hero-prev:hover,
.hero-next:hover {
    background: #6db3f2;
    color: #000;
}

/* Quick Links Section */
.quick-links {
    background: #222;
    padding: 30px 0;
    border-bottom: 1px solid #333;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 15px;
    background: #2a2a2a;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: #333;
    transform: translateY(-3px);
    text-decoration: none;
    color: #fff;
}

.quick-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s ease, transform 0.2s ease;
}

.quick-link-icon svg {
    width: 36px;
    height: 36px;
}

.quick-link:hover .quick-link-icon {
    color: #fff;
    transform: scale(1.1);
}

.quick-link-text {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}

.quick-link-desc {
    font-size: 12px;
    color: #888;
    text-align: center;
}

/* Main Content */
.home-main {
    padding: 60px 0;
}

/* Section Titles */
.section-title {
    font-size: 28px;
    font-weight: 200;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #333;
    color: #fff;
}

/* Recent Entries Grid */
.entries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.entry-card {
    background: #252525;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.entry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.entry-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.entry-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.entry-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.entry-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.entry-card:hover .entry-card-image img {
    transform: scale(1.08);
}

.entry-card-content {
    padding: 20px;
}

.entry-card-date {
    font-size: 12px;
    color: #6db3f2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.entry-card-title {
    font-size: 20px;
    font-weight: 400;
    margin: 10px 0 0 0;
    color: #fff;
    line-height: 1.3;
}

/* Section Footer */
.section-footer {
    text-align: center;
    margin-top: 20px;
}

.btn-more {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid #444;
    color: #999;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background: #6db3f2;
    border-color: #6db3f2;
    color: #000;
    text-decoration: none;
}

/* Recent Journal Section */
.recent-journal {
    margin-top: 60px;
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.journal-loading {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #333;
    border-top: 3px solid #6db3f2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Journal entry cards - matching journal page style */
.home-journal-entry {
    background: #252525;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-journal-entry:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.home-journal-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.home-journal-link:hover {
    text-decoration: none;
    color: inherit;
}

.home-journal-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Square aspect ratio like journal page */
    overflow: hidden;
    background: #1a1a1a;
}

.home-journal-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.home-journal-meta {
    padding: 15px;
}

.home-journal-date {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #6db3f2;
    margin-bottom: 6px;
}

.home-journal-body {
    font-size: 13px;
    color: #999;
    line-height: 1.5;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Footer */
.home-footer {
    background: #111;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #333;
}

.home-footer p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section {
        height: 60vh;
        min-height: 350px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .entries-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
        min-height: 300px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-content {
        bottom: 60px;
    }
    
    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
        opacity: 1;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .quick-link {
        padding: 15px 10px;
    }
    
    .quick-link-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .quick-link-text {
        font-size: 14px;
    }
    
    .quick-link-desc {
        display: none;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .entry-card-image {
        height: 180px;
    }
    
    .entry-card-title {
        font-size: 18px;
    }
    
    .journal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .home-journal-meta {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 45vh;
        min-height: 280px;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .hero-date {
        font-size: 12px;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }
    
    .quick-link {
        padding: 12px 5px;
    }
    
    .quick-link-icon {
        margin-bottom: 5px;
    }
    
    .quick-link-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .quick-link-text {
        font-size: 11px;
    }
    
    .home-main {
        padding: 40px 0;
    }
    
    .entry-card-content {
        padding: 15px;
    }
    
    .entry-card-title {
        font-size: 16px;
    }
    
    .journal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .home-journal-meta {
        padding: 10px;
    }
    
    .home-journal-date {
        font-size: 12px;
    }
    
    .home-journal-body {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }
}
