:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --accent: #4895ef;
    --light: #f8f9fa;
    --dark: #212529;
    --success: #4cc9f0;
    --warning: #f8961e;
    --danger: #f72585;
    --gray: #6c757d;
    --light-gray: #e9ecef;
}

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

body {
    background-color: #f5f7ff;
    color: var(--dark);
    line-height: 1.6;
}

.main-nav {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    max-height: 40px;
    height: auto;
    width: auto;
    display: block;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
    display: block;
}

.nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.8rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary);
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    z-index: 1000;
    padding: 10px 0;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    padding: 10px 20px;
    font-size: 0.95rem;
    color: #fff;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.menu-toggle {
    display: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(67, 97, 238, .3);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1.1rem;
    opacity: .9;
    margin-bottom: 20px;
}

.search-box {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
    transition: all .3s ease;
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(67, 97, 238, .3);
}

.search-box button {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all .3s ease;
}

.search-box button:hover {
    background: var(--secondary);
}

.features-container {
    text-align: center;
    margin-bottom: 40px;
}

.features-container h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.feature-item {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .05);
    transition: transform .3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--gray);
}

.results-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
    padding: 30px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp .5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.domain-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.domain-title {
    font-size: 1.8rem;
    color: var(--primary);
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

.share-link {
    background: var(--light-gray);
    padding: 8px;
    border-radius: 5px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: relative;
    transition: all .3s ease;
    user-select: none;
}

.share-link:hover {
    background: var(--accent);
    color: #fff;
}

.copy-notice {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: .8rem;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.copy-notice::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--primary);
}

.test-section {
    margin-bottom: 30px;
}

.test-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.test-result {
    background: var(--light);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: var(--gray);
}

.result-value {
    text-align: right;
    max-width: 70%;
    word-break: break-word;
}

.status-valid {
    color: #2ecc71;
    font-weight: 600;
    background-color: rgba(46, 204, 113, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.status-expired {
    color: #e74c3c;
    font-weight: 600;
    background-color: rgba(231, 76, 60, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.status-no-ssl {
    color: #2c3e50;
    font-weight: 600;
    background-color: rgba(44, 62, 80, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.error-message {
    background-color: #e74c3c;
    color: white;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(67, 97, 238, .2);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.report-source {
    text-align: center;
    padding: 15px;
    color: var(--gray);
    font-size: 0.9rem;
    border-top: 1px solid var(--light-gray);
    margin-top: 20px;
}

.chain-certificate {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 18px;
    border: 1px solid #eee;
}

.chain-header {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
    font-size: 15px;
}

.chain-connector {
    text-align: center;
    color: var(--gray);
    margin: 8px 0;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .domain-title {
        font-size: 1.4rem;
    }

    .search-box input {
        padding: 12px 15px;
        font-size: 1rem;
    }

    .search-box button {
        padding: 8px 15px;
        font-size: .9rem;
    }

    .results-container {
        padding: 20px;
    }

    .domain-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .action-buttons {
        width: 100%;
        justify-content: flex-end;
    }

    .share-link {
        width: 35px;
        height: 35px;
    }

    .result-item {
        flex-direction: column;
        gap: 5px;
    }

    .result-value {
        text-align: left;
        max-width: 100%;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--secondary);
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        animation: slideDown 0.3s ease forwards;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu li a {
        padding: 10px;
        font-size: 1.1rem;
    }

    .dropdown-menu {
        display: none;
        position: static;
        background: var(--secondary);
        padding-left: 20px;
        box-shadow: none;
        list-style: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-toggle {
        position: relative;
    }

    .dropdown-toggle::after {
        content: '▼';
        font-size: 0.8rem;
        margin-left: 5px;
        transition: transform 0.3s ease;
    }

    .dropdown.active .dropdown-toggle::after {
        transform: rotate(180deg);
    }

    .menu-toggle {
        display: block;
    }

    .features-container h2 {
        font-size: 1.5rem;
    }

    .feature-item {
        padding: 15px;
    }

    .feature-item i {
        font-size: 1.5rem;
    }

    .feature-item h3 {
        font-size: 1rem;
    }

    .feature-item p {
        font-size: 0.85rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
    padding: 40px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-logo img {
    max-height: 40px;
    margin-bottom: 15px;
}

.footer-logo p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-contact h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-contact i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom p {
    margin-bottom: 10px;
}