/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
    text-decoration: none;
}

.logo span {
    color: #333;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #007bff;
}

/* Main Content */
main {
    flex: 1;
    padding-bottom: 3rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    text-align: center;
    padding: 5rem 0 4rem;
    margin-bottom: 0;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s, transform 0.3s;
}

.search-container input:focus {
    outline: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #666;
}

/* Stats Section */
.stats-section {
    background-color: white;
    padding: 2.5rem 0;
    margin-bottom: 3rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
}

.stat-item {
    flex: 1;
    min-width: 150px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tool-card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.tool-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tool-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #007bff;
}

.tool-card p {
    font-size: 0.95rem;
    color: #666;
}

/* Content Section (SEO Text) */
.content-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.content-section h2 {
    margin-bottom: 1rem;
    color: #333;
}

.content-section p {
    margin-bottom: 1rem;
    color: #555;
}

.content-section ul {
    margin-left: 1.5rem;
    color: #555;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* Tool Pages UI */
.tool-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin: 2rem auto;
}

.tool-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tool-header h1 {
    color: #007bff;
    margin-bottom: 0.5rem;
}

.tool-header p {
    color: #666;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

textarea, input[type="text"], input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

textarea:focus, input:focus {
    outline: none;
    border-color: #007bff;
}

.btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
}
.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: #28a745;
}
.btn-success:hover {
    background-color: #218838;
}

.results-panel {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.result-box {
    flex: 1;
    min-width: 120px;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #eee;
}

.result-box span {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
}

.result-box label {
    font-size: 0.9rem;
    color: #666;
}

/* Footer */
footer {
    background-color: #222;
    color: #ddd;
    padding: 3rem 0 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
    line-height: 1.8;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    background-color: #111;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .footer-content {
        flex-direction: column;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #222;
    color: #fff;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}
.cookie-banner.show {
    transform: translateY(0);
}
.cookie-banner p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
    margin-right: 2rem;
}
.cookie-banner a {
    color: #007bff;
    text-decoration: underline;
}
.cookie-banner .btn-accept {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}
.cookie-banner .btn-accept:hover {
    background-color: #218838;
}
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem;
    }
    .cookie-banner p {
        margin-right: 0;
    }
    .cookie-banner .btn-accept {
        width: 100%;
    }
}
