/* Home Page Styles - Clean Minimal Design */

/* Navigation Styles for Home Page - Consistent with Other Pages */
.dashboard-nav {
    background-color: #f7f5f3;
    border-bottom: 1px solid #ebe7e4;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    padding: 0;
    box-shadow: none;
}

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

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #6b6b6b;
    text-decoration: none;
}

.nav-link.active {
    color: #2c3e50;
    font-weight: 500;
}

.nav-links a:hover {
    color: #ff8c69;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-greeting {
    color: white;
    font-size: 0.9rem;
}

.logout-link {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.logout-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Body padding for fixed navbar */
body {
    padding-top: 60px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: #f7f5f3;
    color: #2c3e50;
}

/* Beautiful Background Animation */
.home-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.05), rgba(44, 62, 80, 0.03));
    animation: float 20s ease-in-out infinite;
    filter: blur(0.5px);
}

.orb-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 150px;
    height: 150px;
    bottom: 30%;
    left: 5%;
    animation-delay: 7s;
}

.orb-3 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 30%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.6;
    }
    33% { 
        transform: translateY(-20px) rotate(120deg); 
        opacity: 0.8;
    }
    66% { 
        transform: translateY(10px) rotate(240deg); 
        opacity: 0.4;
    }
}

/* Main Container */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    margin-bottom: 80px;
    align-items: start;
}

.hero-left {
    animation: slideInLeft 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    animation: slideInLeft 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #6b6b6b;
    margin-bottom: 2rem;
    max-width: 500px;
    animation: slideInLeft 1s ease-out 0.2s both;
    margin: 0 0 32px 0;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #ff8c69;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #ff7755;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 105, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #6c757d;
    padding: 12px 24px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #f8f9fa;
    color: #2c3e50;
    border-color: #adb5bd;
}

/* Today's Prompt Card */
.hero-right {
    animation: slideInRight 0.8s ease-out;
}

.today-prompt {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 100px;
    transition: all 0.3s ease;
}

.today-prompt:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.today-prompt h3 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.today-prompt p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Recent Posts Section */
.recent-posts {
    margin-bottom: 64px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.recent-posts h2 {
    font-size: 24px;
    font-weight: 500;
    color: #2c3e50;
    margin: 0 0 24px 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.post-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    border-color: rgba(52, 73, 94, 0.2);
}

.post-card h4 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.post-author {
    color: #6c757d;
    font-size: 14px;
    margin: 0 0 4px 0;
}

.post-date {
    color: #adb5bd;
    font-size: 13px;
    margin: 0;
}

/* Popular Tags Section */
.popular-tags {
    margin-bottom: 64px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.popular-tags h2 {
    font-size: 24px;
    font-weight: 500;
    color: #2c3e50;
    margin: 0 0 20px 0;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    background: #f8f9fa;
    color: #ff8c69;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag:hover {
    background: #ff8c69;
    color: white;
    transform: translateY(-1px);
}

/* Testimonial Section */
.testimonial-section {
    text-align: center;
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.testimonial-section blockquote {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 32px;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.testimonial-section blockquote::before {
    content: '"';
    font-size: 60px;
    color: #ff8c69;
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: Georgia, serif;
}

.testimonial-section p {
    font-size: 20px;
    color: #2c3e50;
    margin: 0 0 16px 0;
    line-height: 1.5;
    font-style: italic;
}

.testimonial-section cite {
    color: #6c757d;
    font-size: 14px;
    font-style: normal;
}

.testimonial-icon {
    position: absolute;
    bottom: -20px;
    right: 40px;
    background: #ff8c69;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 140, 105, 0.3);
}

/* Beautiful Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .today-prompt {
        position: static;
        margin-bottom: 20px;
    }
    
    .home-container {
        padding: 20px 16px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .tags-container {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }
}
