:root {
    --primary: #FB9E3A;
    --primary-light: #FFA55D;
    --secondary: #FFA55D;
    --dark: #2D3436;
    --light: #ffffff;
    --medium: #DFE6E9;
    --border: #D8D8D8;
    --text: #2D3436;
    --text-light: #636E72;
    --card-bg: #FFFFFF;
    --header-bg: #FFFFFF;
    --nav-bg: #FFFFFF;
    --trending-bg: #F5F6FA;
}

.sunny-theme {
    --primary: #FB9E3A;
    --primary-light: #FFA55D;
    --secondary: #FFA55D;
    --border: #D8D8D8;
    --trending-bg: #ffffff;
    --nav-bg: #ffffff; }
.rainy-theme {
     --primary: #456fcf;
     --primary-light: #7DA0FA;
     --secondary: #7DA0FA;
     --border: #B8C2D9;
     --trending-bg: #E6ECF8;
     --nav-bg: #F0F4FF; }
.snowy-theme {
     --primary: #A5B4C5;
    --primary-light: #CBD5E1; 
    --secondary: #CBD5E1; 
    --border: #D1D9E6; 
    --trending-bg: #F0F4F9; 
    --nav-bg: #F8FAFC; }
.cloudy-theme {
     --primary: #7F8C8D; 
     --primary-light: #95A5A6; 
     --secondary: #95A5A6; 
     --border: #BDC3C7; 
     --trending-bg: #ECF0F1; 
     --nav-bg: #F2F3F4; }

.partly-cloudy-theme {
  --primary: #7D9DCF;
  --primary-light: #A5C1E4;
  --secondary: #A5C1E4;
  --border: #C9D4E5;
  --trending-bg: #F0F5FC;
  --nav-bg: #F7FAFD;
}

.foggy-theme {
  --primary: #9E9E9E;
  --primary-light: #BDBDBD;
  --secondary: #BDBDBD;
  --border: #E0E0E0;
  --trending-bg: #F5F5F5;
  --nav-bg: #FAFAFA;
}

.drizzle-theme {
  --primary: #6E9ECF;
  --primary-light: #90B4DC;
  --secondary: #90B4DC;
  --border: #C5D5E7;
  --trending-bg: #E9F0F7;
  --nav-bg: #F2F7FC;
}

.thunderstorm-theme {
  --primary: #4A4E69;
  --primary-light: #6B6D89;
  --secondary: #6B6D89;
  --border: #9FA0B3;
  --trending-bg: #E6E7EE;
  --nav-bg: #F0F1F6;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
    background-color: var(--light);
    color: var(--text);
    transition: all 0.3s ease;
}

.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.side-nav {
    width: 275px;
    padding: 20px 15px;
    background-color: var(--nav-bg);
    border-right: 1px solid var(--border);
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 10;
    flex-shrink: 0;
    border-radius: 22px;
    overflow-y: auto;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--primary);
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s;
}

.logo:hover {
    background-color: var(--primary-light);
    color: white;
}

.logo i {
    margin-right: 10px;
}

.nav-links {
    list-style: none;
    flex-grow: 1;
    padding: 0;
}

.nav-links li {
    margin-bottom: 5px;
}

.nav-button {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-button:hover {
    background-color: var(--primary-light);
    color: white;
}

.nav-button i {
    margin-right: 15px;
    font-size: 22px;
    width: 24px;
    text-align: center;
}

.glow-button {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 15px 0;
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(108, 92, 231, 0.3);
}

.glow-button:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.content-area {
    flex: 1;
    max-width: 650px;
    border-right: 1px solid var(--border);
    border-left: 1px solid var(--border);
    background-color: var(--card-bg);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-y: auto;
}

.header {
    padding: 15px 20px;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border);
    z-index: 5;
}

.header h1 {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}

.post-creator {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    background-color: var(--card-bg);
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--medium);
    margin-right: 15px;
    float: left;
    background-image: url('https://randomuser.me/api/portraits/men/32.jpg');
    background-size: cover;
}

.post-input {
    overflow: hidden;
}

.post-input textarea.sunset-bg {
    width: 100%;
    font-size: 16px;
    padding: 15px;
    min-height: 100px;
    max-height: 80px;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #f5eab0;
    background-image: 
        radial-gradient(circle at 76% 40%, #fef6ec 4%, transparent 5%),
        linear-gradient(to bottom right, #ff7e5f, #a2758d);
    color: #333;
    text-shadow: 0 0 2px rgba(255,255,255,0.7);
    border: 1px solid rgba(162, 117, 141, 0.3) !important;
    outline: none;
    box-sizing: border-box;
    resize: none;
}

.post-input textarea.daytime-bg {
    width: 100%;
    font-size: 16px;
    padding: 15px;
    min-height: 100px;
    max-height: 80px;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #e1f5fe;
    background-image: 
        radial-gradient(circle at 76% 40%, #fff9c4 4%, transparent 5%),
        linear-gradient(to bottom, #64b5f6, #1976d2);
    color: #333;
    text-shadow: 0 0 2px rgba(255,255,255,0.7);
    border: 1px solid rgba(33, 150, 243, 0.3) !important;
    outline: none;
    box-sizing: border-box;
    resize: none;
}

.post-input textarea.nighttime-bg {
    width: 100%;
    font-size: 16px;
    padding: 15px;
    min-height: 100px;
    max-height: 80px;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #0a0a2a;
    background-image: 
        radial-gradient(circle at 76% 40%, #e0e0e0 4%, transparent 5%),
        linear-gradient(to bottom, #1a237e, #000000);
    color: #e0e0ff;
    text-shadow: 0 0 2px rgba(255,255,255,0.3);
    border: 1px solid rgba(100, 120, 200, 0.3) !important;
    outline: none;
    box-sizing: border-box;
    resize: none;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-icons i {
    margin-right: 20px;
    color: var(--primary);
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s;
}

.action-icons i:hover {
    color: var(--secondary);
    transform: scale(1.1);
}

.submit-button {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-button:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

.posts-feed {
    background-color: var(--light);
    flex-grow: 1;
}

.post {
    background-color: var(--card-bg);
    padding: 15px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
}

.post:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.post img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}

.post-author {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--medium);
    margin-right: 12px;
    background-size: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
}

.post-time {
    font-size: 12px;
    color: var(--text-light);
}

.post-content {
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.5;
    padding-left: 52px;
}

.post-stats {
    display: flex;
    gap: 20px;
    padding-left: 52px;
    font-size: 14px;
    color: var(--text-light);
}

.post-stats span {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.post-stats span:hover {
    color: var(--primary);
}

.post-stats i {
    margin-right: 5px;
    font-size: 16px;
}

.right-sidebar {
    width: 275px;
    padding: 20px 15px;
    background-color: var(--nav-bg);
    border-left: 1px solid var(--border);
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 10;
    flex-shrink: 0;
    border-radius: 22px;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
    width: 230px; 
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border-radius: 25px;
    border: 1px solid var(--border);
    background-color: var(--light);
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
}

.search-box i {
    position: absolute;
    left: 255px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.suggestions {
    background-color: var(--trending-bg);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}

.suggestions h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text);
    font-weight: 700;
}

.suggestion {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.suggestion:last-child {
    border-bottom: none;
}

.suggestion-info {
    flex: 1;
    margin-left: 12px;
}

.suggestion-info .name {
    font-weight: 600;
    display: block;
    font-size: 15px;
}

.suggestion-info .followers {
    font-size: 12px;
    color: var(--text-light);
}

.follow-button {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 15px;
    padding: 5px 15px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.follow-button:hover {
    background-color: var(--primary);
    color: white;
}

.card {
    background-color: var(--bg-color);
    border-radius: 1.25rem;
    text-align: center;
}

.loader {
    color: rgb(124, 124, 124);
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 25px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.words {
    overflow: hidden;
    position: relative;
    height: 40px;
    display: inline-block;
    vertical-align: middle;
}

.word {
    display: block;
    height: 40px;
    line-height: 40px;
    color: #faab6a;
    animation: spin_4991 10s infinite;
    position: relative;
}

@keyframes spin_4991 {
    0%, 15% { transform: translateY(0); }
    16%, 30% { transform: translateY(-100%); }
    31%, 45% { transform: translateY(-100%); }
    46%, 60% { transform: translateY(-200%); }
    61%, 75% { transform: translateY(-200%); }
    76%, 85% { transform: translateY(-300%); }
    86%, 92% { transform: translateY(-300%); }
    93%, 100% { transform: translateY(-400%); }
}

.weather-widget-container {
    margin: 0 20px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-widget {
    width: 250px;
    padding: 12px;
    border-radius: 12px;
    font-family: 'Arial', sans-serif;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
}

.weather-widget.daytime-bg {
    background: #e1f5fe;
    background-image: 
        radial-gradient(circle at 76% 40%, #fff9c4 4%, transparent 5%),
        linear-gradient(to bottom, #64b5f6, #1976d2);
    color: #333;
    text-shadow: 0 0 2px rgba(255,255,255,0.7);
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.weather-widget.sunset-bg {
    background: #f5eab0;
    background-image: 
        radial-gradient(circle at 76% 40%, #fef6ec 4%, transparent 5%),
        linear-gradient(to bottom right, #ff7e5f, #a2758d);
    color: #333;
    text-shadow: 0 0 2px rgba(255,255,255,0.7);
    border: 1px solid rgba(162, 117, 141, 0.3);
}

.weather-widget.nighttime-bg {
    background: #0a0a2a;
    background-image: 
        radial-gradient(circle at 76% 40%, #e0e0e0 4%, transparent 5%),
        linear-gradient(to bottom, #1a237e, #000000);
    color: #e0e0ff;
    text-shadow: 0 0 2px rgba(255,255,255,0.3);
    border: 1px solid rgba(100, 120, 200, 0.3);
}

.weather-location {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.weather-temperature {
    font-size: 24px;
    font-weight: bold;
    margin: 6px 0;
}

.weather-feels-like {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 4px;
}

.weather-time {
    font-size: 10px;
    opacity: 0.8;
}

.weather-loading,
.weather-error {
    text-align: center;
    padding: 8px;
    font-size: 13px;
}

.weather-error {
    color: #ff4444;
}

@media (max-width: 1200px) {
    .right-sidebar {
        width: 250px;
    }
}

@media (max-width: 992px) {
    .side-nav {
        width: 80px;
        padding: 15px 10px;
    }
    .right-sidebar {
        display: none;
    }
    .content-area {
        margin-left: 80px;
    }
}

@media (max-width: 768px) {
    .weather-widget-container {
        display: none;
    }
    .app-container {
        flex-direction: column;
    }
    .side-nav {
        width: 100%;
        height: auto;
        position: fixed;
        bottom: 0;
        top: auto;
        flex-direction: row;
        padding: 10px;
    }
    .content-area {
        margin: 0;
        margin-bottom: 70px;
        min-height: calc(100vh - 70px);
    }
    .posts-feed {
        padding-bottom: 120px;
    }
    .nav-links {
        display: flex;
        justify-content: space-around;
    }
    .nav-links li {
        margin: 0;
    }
    .nav-button {
        padding: 10px;
        justify-content: center;
    }
    .nav-button span {
        display: none;
    }
    .nav-button i {
        margin-right: 0;
        font-size: 20px;
    }
    .logo, .glow-button {
        display: none;
    }
}

@media (max-width: 576px) {
    .post-content {
        padding-left: 44px;
        margin-left: -36px;
        font-size: 14px;
    }
    .post-stats {
        padding-left: 44px;
    }
    .post-input textarea {
        min-height: 60px;
        font-size: 14px;
        padding: 12px;
    }
    .action-icons i {
        margin-right: 15px;
        font-size: 18px;
    }
    .submit-button {
        padding: 6px 15px;
    }
    .post {
        margin-bottom: 12px;
    }
    .avatar-small {
        width: 36px;
        height: 36px;
    }
    .user-avatar {
        width: 40px;
        height: 40px;
    }
}
@media only screen and (max-width: 768px) {
    .weather-widget-container {
        display: none !important;
    }
    
    #weatherWidget {
        display: none !important;
    }
}