/* === GLOBAL === */
body {
    background: linear-gradient(135deg, #222831, #393e46);
    color: #eeeeee;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* === NAVBAR === */
nav {
    background: rgba(24, 24, 24, 0.9);
    backdrop-filter: blur(8px);
    padding: 14px 30px;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #eeeeee;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 14px;
    border-radius: 10px;
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover {
    background-color: #00adb5;
    color: #222831;
}

/* === LINKS === */
a {
    color: #00adb5;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #76e8e8;
    text-decoration: underline;
}

/* === COOKIES BANNER === */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cookies {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    border-radius: 16px;
    max-width: 320px;
    padding: 20px;
    background: #222831;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    animation: slideIn 0.4s ease-out;
}

.cookies h2 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #00adb5;
}

.cookies p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.cookies button {
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 6px;
    transition: all 0.25s ease;
}

.accept {
    background: #00adb5;
    color: #222831;
}
.accept:hover {
    background: #48dee0;
    transform: scale(1.05);
}

.onlynecessary {
    background: #5a5a5a;
    color: #fff;
}
.onlynecessary:hover {
    background: #707070;
    transform: scale(1.05);
}

.deny {
    background: #ff4b5c;
    color: #fff;
}
.deny:hover {
    background: #ff6f7d;
    transform: scale(1.05);
}

/* === SEARCH BAR === */
.search {
    width: 60%;
    max-width: 550px;
    display: block;
    margin: 30px auto;
    font-size: 1rem;
    border-radius: 12px;
    padding: 12px 16px;
    border: none;
    outline: none;
    background-color: #eeeeee;
    color: #222831;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: box-shadow 0.3s ease;
}
.search:focus {
    box-shadow: 0 0 0 3px #00adb5, 0 4px 10px rgba(0,0,0,0.2);
}

/* === TOOLS GRID === */
.layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px 5%;
}

.tool {
    cursor: pointer;
    background-color: #393e46;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex: 1 1 calc(25% - 20px);
    max-width: 360px;
    min-width: 280px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: all 0.25s ease;
}

.tool:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    background-color: #434a54;
}

.iconwrapper {
    background: linear-gradient(135deg, #00adb5, #72ffff);
    padding: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.tool-text h5 {
    margin: 0;
    font-size: 1.1rem;
    color: #ffffff;
}

.tool-text p {
    margin: 6px 0 0;
    font-size: 0.9rem;
    color: #cccccc;
}

/* === FOOTER === */
footer {
    text-align: center;
    background-color: #222831;
    color: #eeeeee;
    padding: 30px 10px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
footer a {
    display: inline-block;
    margin-top: 8px;
    color: #00adb5;
}
footer a:hover {
    color: #76e8e8;
}
