/* style.css - Global Navigator Styles */

:root {
    --primary: #4361ee;
    --secondary: #3a0ca3;
    --accent: #4cc9f0;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --gray: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.7);
    --glass: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--darker), var(--dark));
    color: var(--light);
    min-height: 100vh;
    padding: 20px;
    background-attachment: fixed;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header Styles */
header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass);
}

header h1 {
    font-size: 2.5rem;
    background: linear-gradient(to right, var(--accent), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

header p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Search Section */
.search-section {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid var(--glass);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-bar {
    flex: 1;
    padding: 14px 20px;
    border-radius: 50px;
    border: 2px solid var(--glass);
    background: rgba(15, 23, 42, 0.6);
    color: var(--light);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-bar:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(76, 201, 240, 0.3);
}

.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

.engine-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.engine-btn {
    background: var(--glass);
    border: 1px solid var(--glass);
    color: var(--gray);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.engine-btn:hover, .engine-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--glass);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

/* Dual Features Container */
.dual-features-container {
    margin-bottom: 25px;
}

.dual-features-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Single Feature Styles - for modules that appear as full-width rows */
.single-feature {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--glass);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.single-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(76, 201, 240, 0.3);
}

/* Dual Feature Styles - for modules that appear side-by-side */
.dual-feature {
    flex: 1;
}

/* Simple Quote Container - for quote that appears as plain text */
.simple-quote-container {
    padding: 15px 0;
    margin-bottom: 25px;
}

.simple-quote-content {
    margin-top: 10px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--light);
}

#simpleQuoteText {
    font-style: italic;
    color: var(--accent);
    margin-bottom: 8px;
}

#simpleQuoteAuthor {
    font-weight: 600;
    color: var(--gray);
    font-size: 0.9rem;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(76, 201, 240, 0.3);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass);
}

.feature-header i {
    font-size: 1.3rem;
    color: var(--accent);
}

.feature-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.feature-content {
    min-height: 150px;
}

/* Clock Styles */
.clock-display {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin: 15px 0;
    color: var(--accent);
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(76, 201, 240, 0.5);
}

.timezone-selector {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass);
    color: var(--light);
    margin-top: 10px;
}

/* Weather Styles */
.weather-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.temp {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.weather-details {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Notes Styles */
.note-input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass);
    color: var(--light);
    margin-bottom: 10px;
    resize: vertical;
    min-height: 80px;
}

.note-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.note-btn:hover {
    background: var(--secondary);
}

.notes-list {
    margin-top: 15px;
    max-height: 150px;
    overflow-y: auto;
}

.note-item {
    background: var(--glass);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.delete-note {
    color: #ff6b6b;
    cursor: pointer;
    padding: 5px;
}

/* Todo Styles */
.todo-input-container {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.todo-input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass);
    color: var(--light);
}

.todo-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 8px;
    cursor: pointer;
}

.todo-list {
    max-height: 150px;
    overflow-y: auto;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    margin-bottom: 5px;
    background: var(--glass);
}

.todo-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.todo-item.completed span {
    text-decoration: line-through;
    color: var(--gray);
}

.delete-todo {
    margin-left: auto;
    color: #ff6b6b;
    cursor: pointer;
}

/* News Styles */
.news-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.news-item {
    background: var(--glass);
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid transparent;
}

.news-item:hover {
    background: rgba(67, 97, 238, 0.15);
    border-color: rgba(76, 201, 240, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.news-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.news-image-placeholder {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px 8px 0 0;
}

.news-content {
    padding: 14px;
}

.news-source {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.news-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--light);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-time {
    font-size: 0.8rem;
    color: var(--gray);
}

.news-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
    font-style: italic;
}

/* Horoscope Styles */
.horoscope-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.horoscope-sign {
    padding: 10px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass);
    color: var(--light);
    margin-bottom: 10px;
}

.horoscope-display {
    padding: 12px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-style: italic;
    color: var(--accent);
}

.horoscope-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.horoscope-btn:hover {
    background: var(--secondary);
}

/* Trending Styles */
.trend-display {
    padding: 12px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    min-height: 100px;
    max-height: 150px;
    overflow-y: auto;
}

.trend-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--glass);
}

.trend-item:last-child {
    border-bottom: none;
}

.trend-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.trend-btn:hover {
    background: var(--secondary);
}

/* Quote Styles */
.quote-display {
    padding: 15px;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 8px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-display p {
    margin: 0 0 10px 0;
    line-height: 1.5;
}

#quoteText {
    font-style: italic;
    color: var(--accent);
}

#quoteAuthor {
    font-weight: 600;
    color: var(--gray);
}

.quote-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.quote-btn:hover {
    background: var(--secondary);
}

/* Calculator Styles */
.calculator {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.calc-display {
    grid-column: span 4;
    background: rgba(15, 23, 42, 0.8);
    padding: 15px;
    border-radius: 8px;
    text-align: right;
    font-size: 1.5rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.calc-btn {
    background: var(--glass);
    border: 1px solid var(--glass);
    color: var(--light);
    padding: 12px;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.calc-btn:hover {
    background: rgba(67, 97, 238, 0.3);
}

.calc-btn.operator {
    background: var(--primary);
    font-weight: 600;
}

.calc-btn.equals {
    background: var(--accent);
    color: var(--dark);
    font-weight: 700;
}

.calc-btn.clear {
    background: #ef4444;
}

/* Unit Converter Styles */
.converter-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.converter-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.converter-input, .converter-output {
    flex: 1;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid var(--glass);
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.converter-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(76, 201, 240, 0.2);
}

.converter-output {
    background: rgba(67, 97, 238, 0.15);
    border-color: rgba(76, 201, 240, 0.3);
    font-weight: 600;
    color: var(--accent);
}

.converter-select {
    padding: 14px 12px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid var(--glass);
    color: var(--light);
    min-width: 100px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.converter-select:hover {
    border-color: rgba(76, 201, 240, 0.4);
}

.converter-select:focus {
    outline: none;
    border-color: var(--accent);
}

.swap-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: var(--light);
    padding: 14px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.swap-btn:hover {
    transform: rotate(180deg);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}

.swap-btn:active {
    transform: rotate(180deg) scale(0.95);
}

/* Translator Styles */
.translator {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trans-input, .trans-output {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass);
    color: var(--light);
    min-height: 80px;
    resize: vertical;
}

.trans-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.trans-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    flex: 1;
}

.trans-btn:hover {
    background: var(--secondary);
}

.trans-select {
    padding: 8px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass);
    color: var(--light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .search-container {
        flex-direction: column;
    }

    .search-bar {
        width: 100%;
        padding: 16px 20px;
        font-size: 1rem;
    }

    .search-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }

    .engine-selector {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .engine-btn {
        flex: 1 1 calc(50% - 8px);
        min-width: 120px;
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .dual-features-row{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    header p {
        font-size: 0.95rem;
    }

    .search-section {
        padding: 20px 15px;
    }

    .search-bar {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .search-btn {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .engine-selector {
        gap: 6px;
    }

    .engine-btn {
        flex: 1 1 calc(50% - 6px);
        min-width: 100px;
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .dual-features-row {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 15px;
    }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Legal Pages Specific Styles */
.privacy-content, .terms-content {
    line-height: 1.6;
    font-size: 0.95rem;
}

.privacy-content h2, .terms-content h2 {
    color: var(--accent);
    margin: 20px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass);
}

.privacy-content h3, .terms-content h3 {
    color: var(--primary);
    margin: 25px 0 10px 0;
    font-size: 1.2rem;
}

.privacy-content .title, .terms-content .title {
    margin: 20px 0;
}

.privacy-content p, .terms-content p {
    margin-bottom: 12px;
    line-height: 1.7;
}

.privacy-content ul, .terms-content ul {
    margin: 10px 0 15px 20px;
}

.privacy-content li, .terms-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.privacy-content .toc-container, .terms-content .toc-container {
    background: var(--glass);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.privacy-content .toc-title h3, .terms-content .toc-title h3 {
    margin: 0 0 10px 0;
    color: var(--accent);
}

.privacy-content .toc-list p, .terms-content .toc-list p {
    margin: 5px 0;
}

.privacy-content .toc-list a, .terms-content .toc-list a {
    color: var(--accent);
    text-decoration: none;
    display: block;
    padding: 5px 0;
}

.privacy-content .toc-list a:hover, .terms-content .toc-list a:hover {
    text-decoration: underline;
    color: var(--primary);
}

/* Footer Navigation */
.footer-nav {
    margin-top: 20px;
    padding: 10px 0;
    border-top: 1px solid var(--glass);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
    background: var(--glass);
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
}
