/* assets/css/home.css */

/* Site Header Stilleri */
.site-header {
    background: #1a1a2e;
    padding: 15px 20px;
    border-bottom: 1px solid #444;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.site-header .header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .site-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
}

.site-header .site-header-nav {
    display: flex;
    align-items: center;
}

.site-header .site-nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header .site-nav-links li {
    display: inline-block;
}

.site-header .site-nav-links a {
    color: #a0a0c0;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.site-header .site-nav-links a:hover {
    color: #4a90e2;
}

/* Hamburger Menü Stilleri */
.site-header .site-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.site-header .site-hamburger span {
    width: 25px;
    height: 3px;
    background: #a0a0c0;
    transition: all 0.3s ease;
}

.site-header .site-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.site-header .site-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.site-header .site-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Sorgu Alanı (Form) */
.lookup-container {
    margin-top: 15px;
    background: #1a1a2e;
    width: 100%;
}

.container {
    text-align: center;
    margin: 0 auto;
    max-width: 600px;
    width: 100%;
}

.input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.container input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #2a2a3e;
    color: #e0e0e0;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.container input::placeholder {
    color: #a0a0c0;
}

.clear-button {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #a0a0c0;
    cursor: pointer;
    padding: 5px;
}

.clear-button:hover {
    color: #ff4d4d;
}

.loading-bar {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30%;
    height: 3px;
    background: #4a90e2;
    border-radius: 0 0 5px 5px;
}

.loading-bar.animate {
    animation: loadingMove 1.5s ease-in-out infinite;
}

@keyframes loadingMove {
    0% { left: 0; width: 30%; }
    50% { left: 70%; width: 30%; }
    100% { left: 0; width: 30%; }
}

.container .buttons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.container .buttons button {
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    background: #4a90e2;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.container .buttons button:hover {
    background: #357abd;
}

/* Sonuç Alanı Stilleri */
.result-container {
    max-width: 1200px;
    width: 100%;
    margin: 20px auto 40px;
    padding: 0;
    box-sizing: border-box;
}

.result-container h1 {
    font-size: 2rem;
    color: #e0e0e0;
    margin-bottom: 20px;
    text-align: center;
}

.result-container h2 {
    margin: 30px 0 15px;
    font-size: 1.5rem;
    color: #e0e0e0;
}

.result-container p {
    margin: 5px 0;
    font-size: 1rem;
    color: #b0b0b0;
    line-height: 1.6;
}

/* Main Content Stilleri (Statik Sayfalar İçin) */
.main-content {
    padding: 20px 0;
}

/* IP Bilgisi Kutusu */
.ip-info-card {
    background: #2a2a3e;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.ip-details {
    margin: 15px 0;
}

.ip-details p {
    font-size: 1.1rem;
    margin: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #e0e0e0;
}

.ip-details .icon {
    font-size: 1.2rem;
    color: #4a90e2;
}

.ip-explanation {
    font-size: 0.95rem;
    color: #a0a0c0;
    line-height: 1.6;
    margin-top: 15px;
}

/* FAQ Bölümü */
.faq-section {
    margin-top: 30px;
}

.faq-section h3 {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin: 20px 0 10px;
}

.faq-section p {
    font-size: 1rem;
    color: #b0b0b0;
    line-height: 1.6;
    margin: 0 0 15px;
}

/* Footer Stilleri */
.site-footer {
    background: #1a1a2e;
    padding: 15px 20px;
    border-top: 1px solid #444;
    width: 100%;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-container p {
    margin: 5px 0;
    font-size: 0.8rem;
    color: #a0a0c0;
    line-height: 1.4;
}

.footer-container .site-nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
}

.footer-container .site-nav-links li {
    display: inline-block;
}

.footer-container .site-nav-links a {
    color: #a0a0c0;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-container .site-nav-links a:hover {
    color: #4a90e2;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .site-header {
        padding: 10px 15px;
    }

    .site-header .site-title {
        font-size: 1.3rem;
    }

    .site-header .site-header-nav {
        position: relative;
    }

    .site-header .site-hamburger {
        display: flex;
    }

    .site-header .site-nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: #1a1a2e;
        width: 150px;
        padding: 10px;
        border: 1px solid #444;
        border-radius: 5px;
        z-index: 99;
    }

    .site-header .site-nav-links.active {
        display: flex;
    }

    .site-header .site-nav-links li {
        margin: 5px 0;
    }

    .site-header .site-nav-links a {
        font-size: 0.85rem;
        display: block;
        padding: 5px;
    }

    .lookup-container {
        margin-top: 10px;
        padding: 0;
    }

    .container {
        margin: 0 auto;
        padding: 0 10px;
    }

    .container input {
        padding: 10px 40px 10px 12px;
        font-size: 1.1rem;
    }

    .clear-button {
        padding: 5px 10px;
    }

    .container .buttons {
        margin-top: 10px;
        gap: 15px;
        flex-wrap: wrap;
    }

    .container .buttons button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .main-content {
        padding: 10px 0;
    }

    .ip-info-card {
        padding: 15px;
        margin: 15px 0;
    }

    .ip-details p {
        font-size: 1rem;
        gap: 6px;
    }

    .ip-details .icon {
        font-size: 1rem;
    }

    .ip-explanation {
        font-size: 0.9rem;
    }

    .faq-section h3 {
        font-size: 1.1rem;
    }

    .faq-section p {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .site-footer {
        padding: 10px 15px;
    }

    .footer-container p {
        font-size: 0.7rem;
    }

    .footer-container .site-nav-links {
        flex-direction: row;
        gap: 15px;
    }

    .footer-container .site-nav-links li {
        margin: 0;
    }

    .footer-container .site-nav-links a {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .ip-info-card {
        padding: 10px;
    }

    .ip-details p {
        font-size: 0.95rem;
        flex-direction: column;
        gap: 4px;
    }

    .ip-explanation {
        font-size: 0.85rem;
    }

    .faq-section h3 {
        font-size: 1rem;
    }

    .faq-section p {
        font-size: 0.9rem;
    }
}

.ip-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ip-row p {
    flex: 1;
    margin: 0 5px;
}

.ip-row-full {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.ip-error {
    color: #d9534f;
    margin-top: 15px;
}

.ip-details .separator {
    margin: 0 0.5em; /* İsteğe bağlı boşluk */
    color: #ccc; /* İsteğe bağlı renk */
}