/* ========================================
   REDDIT.HTML - REDDIT PAGE STYLES
   ======================================== */

.reddit-page {
    margin: 0;
    padding: 4rem 4rem 0 4rem; /* Remove bottom padding */
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.reddit-page .mainflex {
    margin: 0;
    padding: 0;
    padding-top: 8rem; /* Use padding instead of margin */
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    min-height: calc(100vh - 4rem); /* Account for footer */
    padding-bottom: 2rem;
}

.reddit-custom-container {
    width: 100%;
    max-width: 70%;
    margin-top: 0;
    margin: 0 auto;
    background-color: #00000022;
    backdrop-filter: blur(15px);
    border-radius: var(--roundness);
    padding: 1.5rem;
    margin-bottom: 5rem;
} 

.reddit-header {
    background-color: #00000022;
    backdrop-filter: blur(15px);
    border-radius: var(--roundness);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reddit-header-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.reddit-header-info {
    flex: 1;
}

.reddit-header-info h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--accent1);
}

.reddit-header-info p {
    margin: 0.25rem 0 0 0;
    color: #aaa;
    font-size: 1rem;
}

.reddit-view-more {
    padding: 0.75rem 1.5rem;
    background-color: var(--accent2);
    color: white;
    text-decoration: none;
    border-radius: var(--roundness);
    transition: all 0.3s;
    font-weight: 600;
}

.reddit-view-more:hover {
    background-color: var(--accent1);
    transform: scale(1.05);
}

.reddit-posts-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reddit-post {
    background-color: #00000022;
    backdrop-filter: blur(15px);
    border-radius: var(--roundness);
    padding: 1.5rem;
    transition: all 0.3s;
}

.reddit-post:hover {
    background-color: #00000099;
    transform: translateY(-2px);

}

.reddit-post-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.reddit-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.reddit-post-meta {
    display: flex;
    flex-direction: column;
}

.reddit-post-author {
    font-weight: 600;
    color: #fff;
}

.reddit-post-time {
    font-size: 0.875rem;
    color: #888;
}

.reddit-post-title {
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    color: #fff;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.reddit-post-text {
    color: #ccc;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}
.reddit-post-thumbnail {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--roundness);
    margin-bottom: 1rem;
}

.reddit-post-footer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reddit-post-stat {
    color: #888;
    font-size: 0.9rem;
}

.reddit-post-link {
    margin-left: auto;
    padding: 0.5rem 1rem;
    background-color: rgba(2, 219, 2, 0.2);
    color: var(--accent1);
    text-decoration: none;
    border-radius: var(--roundness);
    transition: all 0.3s;
    font-weight: 600;
}

.reddit-post-link:hover {
    background-color: var(--accent2);
    color: white;
}

.reddit-loading,
.reddit-error {
    text-align: center;
    padding: 3rem;
    color: #aaa;
    font-size: 1.1rem;
}

.reddit-error a {
    color: var(--accent1);
    text-decoration: none;
}

.reddit-error a:hover {
    text-decoration: underline;
}


/* ========================================
   MOBILE RESPONSIVE STYLES - REDDIT
   ======================================== */

@media (max-width: 768px) {
  .reddit-page .mainflex {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    flex-direction: column !important;
    width: 125% !important;
    margin: 0 !important;
    margin-left: -12.5% !important;
    padding: 0 !important;
    padding-top: 100px !important;
    min-height: 100vh !important;
  }
  
  .reddit-custom-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 1.5rem !important;
    box-sizing: border-box !important;
    display: block !important;
    overflow-x: hidden !important;
  }
  
  .reddit-header {
    padding: 0.75rem !important;
    flex-direction: column;
    text-align: center;
  }
  
  .reddit-header-logo {
    width: 50px;
    height: 50px;
  }
  
  .reddit-post {
    padding: 0.75rem !important;
    overflow-x: hidden !important;
  }
  
  .reddit-post-title {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
  }
  
  .reddit-post-text {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
  }
  
  .reddit-post-footer {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .reddit-post-link {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}