/* PlusLayer WHOIS Query System CSS */
/* All style rules are collected in this file */
/* Version: v1.04 - Date: 7.11.2025 */

/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=Raleway:wght@400;500;6600;700&family=Source+Sans+Pro:ital,wght@0,200;0,300;0,400;0,600;0,700;1,300&family=Titillium+Web:wght@200;300;400;600;700&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300&display=swap');

/* ===== BASIC SETTINGS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8f9fa;
    font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #333333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===== HEADER STYLES ===== */
.header {
    background-color: #ffffff;
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header img {
    width: 243px;
    height: 84px;
    display: inline-block;
}

/* ===== CONTAINER STYLES ===== */
.container {
    max-width: 800px;
    width: 100%;
    margin: 30px auto;
    flex: 1;
    padding: 0 15px;
}

/* ===== CARD STYLES ===== */
.card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #025878 0%, #0278a0 100%);
    color: #ffffff;
    text-align: center;
    padding: 20px;
    border-bottom: none;
}

.card-header h1 {
    font-family: 'Raleway', 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.3px;
}

.card-body {
    padding: 30px;
}

/* ===== FORM STYLES ===== */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-control:focus {
    border-color: #025878;
    box-shadow: 0 0 0 0.2rem rgba(2, 88, 120, 0.15);
    background-color: #ffffff;
}

.form-control::placeholder {
    color: #6c757d;
    font-weight: 400;
}

/* ===== BUTTON STYLES ===== */
.btn {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, #025878 0%, #0278a0 100%);
    color: #ffffff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #01415e 0%, #026085 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 88, 120, 0.25);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #ffffff;
    padding: 10px 20px;
    font-size: 14px;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838 0%, #1ca87c 100%);
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== ALERT STYLES ===== */
.alert {
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    font-family: 'Open Sans', sans-serif;
    margin-top: 20px;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* ===== DOMAIN STATUS STYLES ===== */
.domain-status {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.domain-status.available {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.domain-status.not-available {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.domain-status p {
    margin: 0;
}

/* ===== WHOIS RESULT STYLES ===== */
.whois-result {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 25px;
    margin-top: 20px;
    font-family: 'Source Code Pro', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    overflow-x: auto;
}

.whois-result h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #025878;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #025878;
}

.whois-item {
    display: flex;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f3f4;
}

.whois-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.whois-item strong {
    flex: 0 0 200px;
    font-weight: 600;
    color: #025878;
    font-family: 'Open Sans', sans-serif;
}

.whois-item span {
    flex: 1;
    color: #555555;
    word-wrap: break-word;
}

/* ===== FOOTER STYLES ===== */
.footer {
    background-color: #f8f9fa;
    margin-top: auto;
    border-top: 1px solid #e9ecef;
}

.footer .nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 20px 0 0 0;
    align-items: center;
}

.footer .nav a {
    color: #025878;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.separator {
    color: #cccccc;
    margin: 0 5px;
    font-weight: 300;
    user-select: none;
    pointer-events: none;
}

.footer .nav a:hover {
    color: #01415e;
    background-color: #e9ecef;
    border-radius: 4px;
    text-decoration: none;
}

/* MOBILE FIX - HIDE SEPARATORS */
@media (max-width: 480px) {
    .separator {
        display: none;
    }
    
    .footer .nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }
    
    .footer .nav a {
        padding: 6px 10px;
        font-size: 14px;
    }
}

.footer .description {
    /* UPDATED: Changed from 800px to 770px to match the card width */
    max-width: 770px;
    margin: 0 auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 8px 8px 0 0;
    /* UPDATED: Text set to justify */
    text-align: justify;
    /* UPDATED: Removed text-align-last: center; from original file */
}

.footer .description strong {
    color: #025878;
    font-weight: 600;
}

.footer .copyright {
    background: linear-gradient(135deg, #025878 0%, #0278a0 100%);
    color: #ffffff;
    padding: 15px 0;
    margin-top: 20px;
    text-align: center;
}

.footer .copyright p {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .container {
        margin: 20px auto;
        padding: 0 10px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .card-header h1 {
        font-size: 1.3rem;
    }
    
    .header img {
        width: 200px;
        height: auto;
    }
    
    .form-control {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .whois-result {
        padding: 20px;
        font-size: 12px;
    }
    
    .whois-result h2 {
        font-size: 1.1rem;
    }
    
    .whois-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .whois-item strong {
        flex: none;
        margin-bottom: 2px;
    }
    
    .domain-status {
        padding: 15px;
        font-size: 1rem;
    }
    
    .footer .nav a {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .footer .description {
        padding: 20px;
        /* UPDATED: This margin makes it align with the container's 10px padding */
        margin: 0 10px;
        font-size: 13px;
        text-align: justify;
    }
    
    .footer .nav a:not(:last-child)::after {
        margin-left: 12px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    .container {
        margin: 15px auto;
        padding: 0 10px; /* Container has 10px padding */
    }
    
    .card-body {
        padding: 15px;
    }
    
    .card-header {
        padding: 15px;
    }
    
    .card-header h1 {
        font-size: 1.2rem;
    }
    
    .header img {
        width: 180px;
    }
    
    .whois-result {
        padding: 15px;
    }
    
    .whois-result h2 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .footer .nav {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .footer .nav a:not(:last-child)::after {
        content: "";
        margin: 0;
    }
    
    .footer .nav a {
        margin: 2px 0;
    }
    
    .footer .description {
        padding: 15px;
        /* UPDATED: Changed from 5px to 10px to match container's 10px padding */
        margin: 0 10px;
        font-size: 12px;
    }
    
    .footer .copyright p {
        font-size: 13px;
    }
}

/* Very small screens (360px and below) */
@media (max-width: 360px) {
    .container {
        margin: 10px auto;
        padding: 0 5px; /* Container has 5px padding */
    }
    
    .footer .description {
        /* UPDATED: This margin makes it align with the container's 5px padding */
        margin: 0 5px;
        padding: 15px; /* Padding was fine */
    }
    
    .card-body {
        padding: 12px;
    }
    
    .header img {
        width: 160px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .form-control {
        padding: 8px 12px;
        font-size: 13px;
    }
}

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

.whois-result,
.domain-status,
.alert {
    animation: fadeInUp 0.5s ease-out;
}

/* ===== SCROLLBAR STYLES ===== */
.whois-result::-webkit-scrollbar {
    height: 6px;
}

.whois-result::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.whois-result::-webkit-scrollbar-thumb {
    background: #025878;
    border-radius: 3px;
}

.whois-result::-webkit-scrollbar-thumb:hover {
    background: #01415e;
}

/* ===== PRINT STYLES ===== */
@media print {
    .btn,
    .footer .nav,
    .domain-status .btn-success {
        display: none !important;
    }
    
    .whois-result {
        border: 1px solid #000000 !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #dddddd !important;
    }
    
    .footer .description {
        background: transparent !important;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.w-100 {
    width: 100%;
}

.mb-3 {
    margin-bottom: 1rem;
}

/* ===== LOADING SPINNER ===== */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}