:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(148, 163, 184, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
}

body.dark-theme {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e1b4b 100%);
    color: var(--text-primary);
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.navbar {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-1px);
}

.navbar-brand small {
    font-size: 0.8rem;
    opacity: 0.7;
}

.navbar-brand i {
    color: var(--primary-color);
}

.language-selector {
    display: flex;
    gap: 0.5rem;
}

.language-selector .btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.language-selector .btn:hover,
.language-selector .btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.search-section {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.input-group {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.form-control {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    background: transparent;
    color: var(--text-primary);
    box-shadow: none;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

@media (max-width: 480px) {
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-success {
    background: #059669;
    border-color: #059669;
}

.btn-success:hover {
    background: #047857;
    border-color: #047857;
    transform: translateY(-1px);
}

.ssl-info-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1000px;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease-out;
}

@media (max-width: 480px) {
    .ssl-info-card {
        padding: 1rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.domain-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.domain-title i {
    color: var(--primary-color);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    background: rgba(15, 23, 42, 0.4);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    background: rgba(15, 23, 42, 0.6);
}

.info-item label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-item label i {
    color: var(--primary-color);
}

.info-item div {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    word-break: break-word;
}

@media (max-width: 480px) {
    .info-item div {
        font-size: 1rem;
    }
}

.covered-domains {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.covered-domains h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.covered-domains h4 i {
    color: var(--primary-color);
}

.domain-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.domain-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.domain-tag:hover {
    transform: translateY(-1px);
    background: var(--primary-hover);
}

.raw-output {
    margin: 2rem 0;
    position: relative;
}

.raw-output h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
}

.raw-output h4 i {
    color: var(--primary-color);
}

.raw-output pre {
    background: #0f172a;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 200px;
    overflow-y: hidden;
    transition: max-height 0.5s ease-in-out;
    border: 1px solid var(--border-color);
}

.raw-output.active pre {
    max-height: 1000px; /* Or a larger value */
    overflow-y: auto;
}

.api-usage {
    margin-top: 2rem;
}

.api-usage h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.api-usage h4 i {
    color: var(--primary-color);
}

.api-format {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.api-format h5 {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.api-format code {
    display: block;
    color: var(--text-primary);
    word-break: break-all;
    font-family: 'Fira Code', monospace;
}

.rate-limit-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.rate-limit-info i {
    color: #eab308;
}

.features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.feature {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.feature i {
    color: var(--primary-color);
}

footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.ssl-invalid {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #ef4444;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.ssl-invalid h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.text-success {
    color: #10b981 !important;
}

.text-danger {
    color: #ef4444 !important;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .features {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 992px) {
    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Loading Animasyonu */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Yeni Eklenen Stiller */
.intro-section {
    text-align: center;
    margin: 4rem 0;
    animation: fadeInUp 0.8s ease-out;
}

.intro-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.features-section {
    padding: 4rem 0;
    background: rgba(15, 23, 42, 0.3);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.why-section {
    padding: 4rem 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.why-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.why-card:hover {
    transform: scale(1.05);
}

.why-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-title p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.how-section {
    padding: 4rem 0;
    background: rgba(15, 23, 42, 0.3);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--primary-color);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin: 0 auto 1rem;
}

.api-docs {
    padding: 4rem 0;
}

.rate-limit-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.rate-limit-badge i {
    margin-right: 0.5rem;
}

.api-section {
    margin-top: 3rem;
}

.api-section h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.api-section h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 0;
}

.api-example {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.api-example:last-child {
    margin-bottom: 0;
}

.api-example pre {
    margin: 0;
    overflow-x: auto;
}

.api-example code {
    font-family: 'Fira Code', monospace;
    color: var(--text-primary);
    line-height: 1.5;
}

.endpoint {
    font-family: 'Fira Code', monospace;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.api-params {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.param-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.param-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.param-item:first-child {
    padding-top: 0;
}

.param-item code {
    font-family: 'Fira Code', monospace;
    color: var(--primary-color);
    font-size: 1rem;
    padding: 0.2rem 0.5rem;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 4px;
}

.param-required,
.param-optional {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    text-transform: uppercase;
}

.param-required {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.param-optional {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.param-item p {
    color: var(--text-secondary);
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
}

.copy-btn {
    transition: all 0.3s ease;
}

.copy-btn i {
    margin-right: 0.3rem;
}

.copy-btn:hover {
    transform: translateY(-2px);
}

.copy-btn.copied {
    background: #10b981;
    border-color: #10b981;
}

@media (max-width: 768px) {
    .steps {
        flex-direction: column;
    }
    
    .step:not(:last-child)::after {
        content: '↓';
        right: 50%;
        bottom: -2rem;
        top: auto;
        transform: translateX(50%);
    }
    
    .intro-section h1 {
        font-size: 2rem;
    }
    
    .intro-section p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .api-example code {
        font-size: 0.9rem;
    }
    
    .endpoint {
        font-size: 0.9rem;
    }
    
    .api-section h3 {
        font-size: 1.3rem;
    }
    
    .api-section h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .intro-section h1 {
        font-size: 1.8rem;
    }
    .intro-section p {
        font-size: 0.9rem;
    }
    .navbar-brand {
        font-size: 1.2rem;
    }
    .search-section {
        margin: 2rem auto;
    }
    .input-group {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .input-group .form-control,
    .input-group .btn {
        width: 100%;
    }
}

.faq-section {
    padding: 4rem 0;
    background: var(--bg-dark);
    border-radius: 16px;
    margin: 2rem 0;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(15, 23, 42, 0.4);
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
}

.faq-item.active .faq-question {
    color: var(--primary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    transition: max-height 0.5s ease-in;
}

/* Add animation for FAQ items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-item:nth-child(6) { animation-delay: 0.6s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 0;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    .faq-question {
        font-size: 1rem;
    }
    .faq-answer-content {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 1rem;
    }
}

#result .card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

#result .card-title {
    color: var(--text-primary);
    font-weight: 600;
}

#result .list-group-flush {
    background-color: transparent;
}

#result .list-group-item {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

#result .list-group-item strong {
    color: var(--text-primary);
}

#result .list-group-item code,
#result ul.list-unstyled code {
    color: var(--text-primary);
    background-color: rgba(79, 70, 229, 0.1);
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.9em;
}

#result .text-success {
    color: #22c55e !important;
}

#result .text-danger {
    color: #ef4444 !important;
}

#result .status-card .card-body {
    padding: 1.5rem;
}

#result .list-group-item .text-muted {
    color: var(--text-secondary) !important;
    opacity: 0.8;
}

#result ul.list-unstyled code {
    color: var(--text-secondary);
    font-size: 0.85em;
}