/* ================================ NEWSPAPER THEME (Classic & Professional) ================================ */ :root { --primary-font: 'Poppins', sans-serif; --secondary-font: 'Roboto', 'Helvetica Neue', Arial, sans-serif; --text-color: #2d3436; --accent-color: #6c63ff; /* Modern Purple-Blue */ --accent-hover: #574bdf; --bg-color: #f0f2f5; --paper-color: rgba(255, 255, 255, 0.45); --border-color: rgba(255, 255, 255, 0.25); --shadow-subtle: 0 8px 32px 0 rgba(31, 38, 135, 0.15); --glass-bg: rgba(255, 255, 255, 0.35); --glass-border: rgba(255, 255, 255, 0.25); --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); --blur-amount: 16px; --skeleton-gray: #e0e0e0; --skeleton-highlight: #f5f5f5; } body { font-family: var(--secondary-font); background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab); background-size: 400% 400%; animation: gradientShift 15s ease infinite; color: var(--text-color); margin: 0; padding: 0; line-height: 1.6; transition: var(--transition-smooth); position: relative; min-height: 100vh; } body::before { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(at 10% 20%, rgba(108, 99, 255, 0.15) 0, transparent 50%), radial-gradient(at 80% 10%, rgba(233, 69, 96, 0.12) 0, transparent 50%), radial-gradient(at 50% 80%, rgba(35, 166, 213, 0.1) 0, transparent 50%); pointer-events: none; z-index: -1; } @keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } body.no-scroll { overflow: hidden; } /* HEADER STYLE (Simplified) */ header.desktop-header { text-align: center; padding: 1rem 0; background: rgba(255, 255, 255, 0.25); backdrop-filter: blur(var(--blur-amount)); -webkit-backdrop-filter: blur(var(--blur-amount)); border: 1px solid var(--glass-border); border-radius: 12px; margin-bottom: 1rem; box-shadow: var(--shadow-subtle); position: relative; z-index: 110; } .header-top-row { display: flex; justify-content: center; /* Center the title group by default, or use space-between */ align-items: center; position: relative; margin-bottom: 10px; } .header-title-wrapper { flex: 1; text-align: center; } .header-user-menu { position: absolute; right: 20px; /* Adjust positioning */ top: 50%; transform: translateY(-50%); } .user-menu-large { font-size: 1.2rem !important; padding: 10px 20px !important; font-weight: 700 !important; background-color: transparent !important; /* Or keep background if desired */ border: none !important; } .user-menu-large i { font-size: 1.4rem; } .mobile-header { display: none !important; justify-content: space-between; align-items: center; padding: 10px 0; background: transparent; border-bottom: 1px solid var(--border-color); margin-bottom: 15px; } .logo-mobile a { font-family: var(--primary-font); font-weight: 900; font-size: 1.2rem; text-decoration: none; color: var(--text-color); } /* Ensure mobile header is hidden on desktop by default */ .mobile-header { display: none !important; } @media (max-width: 768px) { .mobile-header { display: flex !important; } } /* Account Button Decoration */ .nav-right .dropdown .dropbtn { background-color: var(--bg-color); border: 1px solid var(--border-color); border-radius: 20px; padding: 8px 16px; display: flex; align-items: center; gap: 8px; transition: all 0.2s ease; } .nav-right .dropdown .dropbtn:hover { background-color: #e2e6ea; border-color: #adb5bd; color: var(--text-color); } .nav-right .dropdown .dropbtn i { color: var(--accent-color); } /* Ensure navbar has padding since we removed body padding */ .main-nav { padding: 0 40px; } .header-top h1 { font-family: var(--primary-font); font-size: clamp(2rem, 8vw, 3rem); font-weight: 900; text-transform: uppercase; letter-spacing: -1px; margin: 0; line-height: 1.1; } /* ... (other styles) */ /* Updated Dropdown Right Alignment */ .dropdown-content.dropdown-right { right: 0 !important; left: auto !important; transform-origin: top right; } .header-date { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; align-items: center; margin: 5px 0 10px 0; padding: 5px 0; color: var(--text-muted); font-weight: 500; text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.5px; } /* ================================ NAVIGATION & DROPDOWNS ================================ */ .main-nav { border: 1px solid var(--glass-border); border-radius: 12px; padding: 0 20px; background: rgba(255, 255, 255, 0.3); backdrop-filter: blur(var(--blur-amount)); -webkit-backdrop-filter: blur(var(--blur-amount)); height: 50px; position: relative; z-index: 100; margin-bottom: 15px; box-shadow: var(--shadow-subtle); } .nav-content-wrapper { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 100%; } .nav-left, .nav-right { display: flex; align-items: center; gap: 0; height: 100%; } .nav-link { text-decoration: none; color: var(--text-color); padding: 0 12px; height: 100%; display: flex; align-items: center; font-family: var(--secondary-font); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; cursor: pointer; background: none; border: none; transition: all 0.2s ease; } .nav-link:hover, .dropbtn:hover { background-color: rgba(0, 0, 0, 0.05); color: var(--accent-color); text-decoration: none; } .dropdown { position: relative; height: 100%; display: flex; align-items: center; } .dropbtn { margin: 0; outline: none; } .dropbtn i.fa-chevron-down { font-size: 0.7em; margin-left: 6px; opacity: 0.7; } .dropdown-content { display: none; position: absolute; top: 100%; left: 0; background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(var(--blur-amount)); -webkit-backdrop-filter: blur(var(--blur-amount)); min-width: 220px; box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2); border: 1px solid var(--glass-border); border-top: none; border-radius: 0 0 12px 12px; z-index: 1000; } .dropdown:hover .dropdown-content { display: block; animation: fadeIn 0.2s ease-in-out; } @keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } } .dropdown-content a, .dropdown-logout { padding: 12px 20px; text-decoration: none; display: block; color: var(--text-color); font-size: 0.9rem; font-family: var(--secondary-font); font-weight: normal; text-transform: none; border-bottom: 1px solid var(--border-color); transition: background-color 0.2s; width: 100%; box-sizing: border-box; background: none; border-left: none; border-right: none; border-top: none; text-align: left; } .dropdown-content a:last-child { border-bottom: none; } .dropdown-content a:hover, .dropdown-logout:hover { background-color: rgba(0, 0, 0, 0.05); color: var(--accent-color); } .dropdown-content i { width: 20px; text-align: center; margin-right: 10px; color: var(--accent-color); opacity: 0.8; } .dropdown-divider { height: 1px; background-color: var(--border-color); margin: 0; } .icon-btn { width: 40px; height: 50px; display: flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; color: var(--text-color); font-size: 1.1rem; transition: color 0.2s; } .nav-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1500; backdrop-filter: blur(4px); } .nav-overlay.active { display: block; } .mobile-menu-toggle { display: none; background: var(--accent-color); color: white; border: none; padding: 10px 15px; border-radius: 8px; cursor: pointer; font-size: 1.2rem; margin: 10px auto; transition: var(--transition-smooth); box-shadow: 0 4px 10px rgba(108, 99, 255, 0.2); } .mobile-menu-toggle:hover { background: var(--accent-hover); transform: scale(1.05); } @media (max-width: 768px) { .mobile-menu-toggle { display: block; } } /* ================================ CONTAINER & LAYOUT (Restored) ================================ */ .container { max-width: 1400px; margin: 2rem auto; padding: 0 40px 40px 40px; background: rgba(255, 255, 255, 0.35); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: 16px; box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2); transition: var(--transition-smooth); } @media (max-width: 768px) { .container { margin: 10px; padding: 20px; border-radius: 16px; } } @media (max-width: 480px) { .container { margin: 0; padding: 15px; border-radius: 0; } } #noticias-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; margin-top: 20px; width: 100%; /* Ensure items fill the row if few */ justify-content: start; grid-auto-rows: min-content; } /* CARD / ARTICLE STYLE */ .noticia-card { background: rgba(255, 255, 255, 0.3); backdrop-filter: blur(var(--blur-amount)); -webkit-backdrop-filter: blur(var(--blur-amount)); border-radius: 20px; padding: 0; margin-bottom: 0; overflow: hidden; border: 1px solid var(--glass-border); box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15); transition: var(--transition-smooth); display: flex; flex-direction: column; animation: fadeInUp 0.5s ease backwards; } /* Staggered animation delays handled by JS or CSS nth-child if static */ @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .noticia-card-content { padding: 20px; flex-grow: 1; } .noticia-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.45); box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25); } .noticia-card-image-wrapper { overflow: hidden; height: 220px; width: 100%; position: relative; /* For loading state if needed */ } .noticia-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; } .noticia-card:hover img { transform: scale(1.1); } .no-image-placeholder { width: 100%; height: 200px; background-color: var(--border-color); margin-bottom: 15px; display: flex; align-items: center; justify-content: center; color: var(--text-color); opacity: 0.1; } .noticia-card h3 { font-family: var(--primary-font); font-size: 1.8rem; margin: 0 0 12px 0; line-height: 1.3; } .noticia-card h3 a { text-decoration: none; color: #000; } .noticia-card h3 a:hover { color: var(--accent-color); } .noticia-meta { font-size: 1rem; color: #666; margin-bottom: 12px; text-transform: uppercase; font-family: var(--secondary-font); } .noticia-summary { font-size: 1rem; color: #444; text-align: justify; } /* BUTTONS & FORMS */ .btn { background-color: var(--accent-color); color: #fff; font-family: var(--secondary-font); text-transform: uppercase; font-weight: 700; padding: 12px 24px; border: none; border-radius: 12px; cursor: pointer; font-size: 0.85rem; letter-spacing: 1px; transition: var(--transition-smooth); box-shadow: 0 4px 14px 0 rgba(108, 99, 255, 0.39); } .btn:hover { background-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(108, 99, 255, 0.23); } .btn-sm { padding: 8px 16px; font-size: 0.75rem; border-radius: 8px; } input, select { padding: 8px; border: 1px solid var(--border-color); font-family: var(--secondary-font); } .date-line { text-align: center; border-bottom: 1px solid #000; border-top: 1px solid #000; padding: 5px 0; margin: 10px 0 30px 0; font-weight: bold; text-transform: uppercase; font-size: 0.9rem; } /* Noticia Actions */ .noticia-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; } .btn-fav { background: transparent; border: 1px solid var(--border-color); color: #777; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; transition: all 0.2s; } .btn-fav:hover { border-color: #f1c40f; color: #f1c40f; } .btn-fav.active { background: #f1c40f; border-color: #f1c40f; color: #fff; } /* Read History */ .noticia-card.is-read { opacity: 0.6; filter: grayscale(0.5); } .noticia-card.is-read:hover { opacity: 0.9; filter: grayscale(0); } /* Filter Styles */ .filter-row { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-end; border-top: 1px solid var(--border-color); padding-top: 1.5rem; margin-top: 1rem; justify-content: center; } .filter-group { flex: 1 1 200px; max-width: 250px; position: relative; /* For floating labels if applied here */ } .filter-group.toggle-group { display: flex; align-items: center; gap: 8px; min-width: 150px; padding-bottom: 8px; } @media (max-width: 768px) { .filter-row { gap: 0.75rem; padding-top: 1rem; } .filter-group { flex: 1 1 calc(50% - 1rem); max-width: 100%; } } @media (max-width: 480px) { .filter-group { flex: 1 1 100%; } } .filter-group label { display: block; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.9rem; color: var(--text-color); } .filter-group select, .filter-group input { width: 100%; padding: 10px 12px; border: 1px solid var(--glass-border); border-radius: 8px; background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--text-color); } /* ================================ 1. FLOATING LABELS (New) ================================ */ .floating-label-group { position: relative; margin-bottom: 24px; } .floating-label-group input, .floating-label-group textarea, .floating-label-group select { width: 100%; padding: 12px 14px; font-size: 1rem; background: rgba(255, 255, 255, 0.5); border: 2px solid var(--glass-border); border-radius: 8px; outline: none; transition: all 0.2s ease; color: var(--text-color); } .floating-label-group input:focus, .floating-label-group textarea:focus, .floating-label-group select:focus { border-color: var(--accent-color); background: rgba(255, 255, 255, 0.9); } .floating-label-group label { position: absolute; top: 14px; left: 14px; color: #666; font-size: 1rem; background: transparent; padding: 0 4px; transition: all 0.2s ease; pointer-events: none; } /* Move label up on focus or if value exists */ .floating-label-group input:focus+label, .floating-label-group input:not(:placeholder-shown)+label, .floating-label-group textarea:focus+label, .floating-label-group textarea:not(:placeholder-shown)+label { top: -10px; left: 10px; font-size: 0.8rem; color: var(--accent-color); font-weight: 600; background: var(--bg-color); /* Mask border */ border-radius: 4px; } /* Validation Feedback */ .floating-label-group input:valid { border-color: var(--glass-border); /* Default valid state */ } /* ================================ 2. SKELETON LOADING (New) ================================ */ .skeleton { background-color: var(--skeleton-gray); position: relative; overflow: hidden; border-radius: 4px; } .skeleton::after { position: absolute; top: 0; right: 0; bottom: 0; left: 0; transform: translateX(-100%); background-image: linear-gradient( 90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0) ); animation: shimmer 2s infinite; content: ''; } @keyframes shimmer { 100% { transform: translateX(100%); } } .card-skeleton { height: 400px; display: flex; flex-direction: column; } .skeleton-img { height: 200px; width: 100%; } .skeleton-text { height: 16px; margin-bottom: 8px; width: 90%; } .skeleton-text.short { width: 60%; } /* ================================ DARK MODE (Refined) ================================ */ body.dark-mode { --text-color: #e0e0e0; --bg-color: #1a1a2e; --paper-color: rgba(22, 33, 62, 0.4); --border-color: rgba(255, 255, 255, 0.15); --glass-bg: rgba(31, 41, 64, 0.35); --glass-border: rgba(255, 255, 255, 0.15); --accent-color: #e94560; --skeleton-gray: #2d3436; --skeleton-highlight: #3a4560; } body.dark-mode { background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #533483); background-size: 400% 400%; animation: gradientShift 15s ease infinite; } body.dark-mode::before { background-image: radial-gradient(at 10% 20%, rgba(233, 69, 96, 0.15) 0, transparent 50%), radial-gradient(at 80% 10%, rgba(108, 99, 255, 0.12) 0, transparent 50%), radial-gradient(at 50% 80%, rgba(83, 52, 131, 0.1) 0, transparent 50%); } body.dark-mode .noticia-card { background: rgba(31, 41, 64, 0.35); backdrop-filter: blur(var(--blur-amount)); -webkit-backdrop-filter: blur(var(--blur-amount)); border: 1px solid rgba(255, 255, 255, 0.1); } body.dark-mode .noticia-card:hover { background: rgba(31, 41, 64, 0.5); } body.dark-mode .noticia-card h3 a { color: #fff; } body.dark-mode .noticia-summary { color: #b0b0b0; } body.dark-mode input, body.dark-mode select, body.dark-mode textarea { background: #2a3a5c; color: #e0e0e0; border-color: #3a3a5c; } body.dark-mode .floating-label-group input, body.dark-mode .floating-label-group textarea, body.dark-mode .floating-label-group select { background: rgba(26, 26, 46, 0.8); border-color: rgba(255, 255, 255, 0.15); color: #fff; } body.dark-mode .floating-label-group input:focus + label, body.dark-mode .floating-label-group input:not(:placeholder-shown) + label { background: var(--bg-color); color: var(--accent-color); } body.dark-mode .card { background: #1f2940; border: 1px solid var(--border-color); } body.dark-mode header { background: #16213e; border-color: #e94560; } body.dark-mode .date-line { border-color: #e94560; } body.dark-mode .nav-link:hover, body.dark-mode .dropbtn:hover, body.dark-mode .dropdown-content a:hover, body.dark-mode .dropdown-logout:hover { background-color: rgba(255, 255, 255, 0.05); } body.dark-mode .dropdown-content { background: rgba(22, 33, 62, 0.9); backdrop-filter: blur(var(--blur-amount)); -webkit-backdrop-filter: blur(var(--blur-amount)); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4); } body.dark-mode .btn-fav { border-color: #444; color: #888; } body.dark-mode .btn-fav:hover, body.dark-mode .btn-fav.active { border-color: #f1c40f; color: #f1c40f; } /* Smooth Transition */ body, .container { border-bottom-color: rgba(255, 255, 255, 0.15); } /* Improved Input Focus States */ input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.15); background: rgba(255, 255, 255, 0.7) !important; } body.dark-mode input:focus, body.dark-mode select:focus, body.dark-mode textarea:focus { box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.2); background: rgba(36, 52, 75, 0.7) !important; } /* Scrollbar Styling for Modern Look */ ::-webkit-scrollbar { width: 12px; } ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.05); border-radius: 10px; } ::-webkit-scrollbar-thumb { background: rgba(108, 99, 255, 0.3); border-radius: 10px; } ::-webkit-scrollbar-thumb:hover { background: rgba(108, 99, 255, 0.5); } body.dark-mode ::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); } body.dark-mode ::-webkit-scrollbar-thumb { background: rgba(233, 69, 96, 0.3); } body.dark-mode ::-webkit-scrollbar-thumb:hover { background: rgba(233, 69, 96, 0.5); } /* ================================ TOM SELECT OVERRIDES (For Dark Mode) ================================ */ .ts-control { border-radius: 8px !important; padding: 10px 12px !important; border: 1px solid var(--glass-border) !important; background: rgba(255,255,255,0.5) !important; } .ts-dropdown { border-radius: 0 0 8px 8px !important; border-color: var(--glass-border) !important; background: #fff; z-index: 2000 !important; } body.dark-mode .ts-control { background: rgba(26, 26, 46, 0.8) !important; border-color: rgba(255,255,255,0.15) !important; color: #e0e0e0 !important; } body.dark-mode .ts-control input { color: #e0e0e0 !important; } body.dark-mode .ts-dropdown { background: #16213e !important; color: #e0e0e0 !important; border-color: rgba(255,255,255,0.15) !important; } body.dark-mode .ts-dropdown .active { background-color: rgba(233, 69, 96, 0.2) !important; color: #fff !important; } body.dark-mode .ts-dropdown .option:hover { background-color: rgba(233, 69, 96, 0.2) !important; }