/* style.css */
:root {
    --bg-gradient-start: #ffffff;
    --bg-gradient-end: #f8f9fa;
    --card-bg: #ffffff;
    --text-primary: #212529;
    --text-secondary: #495057;
    --input-border: #dee2e6;
    --input-bg: #ffffff;
    --section-bg: #f8f9fa;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.12);
    --hero-bg: #ffffff;
    --feature-border: #e9ecef;
    --accent-primary: #78abca;
    --accent-hover: #bfbecf;
    --gradient-hero-start: #6c757d;
    --gradient-hero-end: #495057;
}

[data-theme="dark"] {
    --bg-gradient-start: #1a0f3e;
    --bg-gradient-end: #0d0621;
    --card-bg: #1e1547;
    --text-primary: #ffffff;
    --text-secondary: #b8b0d4;
    --input-border: #3d2e73;
    --input-bg: #2a1f5c;
    --section-bg: #2a1f5c;
    --shadow: rgba(0, 0, 0, 0.4);
    --shadow-hover: rgba(138, 75, 255, 0.3);
    --hero-bg: #0d0621;
    --feature-border: #3d2e73;
    --accent-primary: #8a4bff;
    --accent-hover: #a366ff;
    --gradient-hero-start: #1a0f3e;
    --gradient-hero-end: #4a1f8f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    padding: 20px;
    transition: background 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #78abca 0%, #bfbecf 100%);
    padding: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(67, 97, 238, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.link-button {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.link-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header p {
    opacity: 0.95;
    font-size: 1.1em;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(20deg);
}

.theme-icon {
    font-size: 24px;
}

.dashboard {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 20px 60px var(--shadow);
    transition: all 0.3s ease;
}

.add-url-section {
    background: var(--section-bg);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.add-url-section h2 {
    color: var(--text-primary);
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

input[type="text"], input[type="url"] {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-primary);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--shadow-hover);
}

button {
    padding: 12px 25px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

button:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.check-all-btn {
    background: var(--accent-primary);
}

.check-all-btn:hover {
    background: var(--accent-hover);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-hover) 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow);
}

.stat-card h3 {
    font-size: 2em;
    margin-bottom: 5px;
}

.stat-card p {
    opacity: 0.9;
}

.url-list {
    display: grid;
    gap: 15px;
}

.url-card {
    background: var(--section-bg);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.url-card.status-up {
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.url-card.status-down {
    border-color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.15);
}

.url-card.status-checking {
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px var(--shadow-hover);
}

.url-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-hover);
}

.url-info {
    flex: 1;
}

.url-name {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.url-address {
    color: var(--text-secondary);
    font-size: 0.9em;
    margin-bottom: 10px;
}

.url-status {
    display: flex;
    gap: 15px;
    align-items: center;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-badge.badge-up {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.badge-down {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.badge-checking {
    background: #dbeafe;
    color: #1e40af;
}

.response-time {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.url-actions {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 8px 15px;
    font-size: 14px;
}

.btn-delete {
    background: #ef4444;
}

.btn-delete:hover {
    background: #dc2626;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
    color: var(--text-primary);
}

.last-checked {
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* FAQ Page Styles */
.landing-hero {
    background: linear-gradient(135deg, var(--gradient-hero-start) 0%, var(--gradient-hero-end) 100%);
    padding: 80px 20px;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.btn-primary {
    padding: 15px 35px;
    font-size: 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-hover);
    background: var(--accent-hover);
}

.btn-large {
    padding: 18px 45px;
    font-size: 20px;
}

.hero-badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.95em;
    backdrop-filter: blur(10px);
}

.theme-toggle-landing {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-landing:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(20deg);
}

.features-section, .how-it-works-section, .faq-section {
    padding: 80px 20px;
    background: var(--hero-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 2px solid var(--feature-border);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.use-cases-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--gradient-hero-start) 0%, var(--gradient-hero-end) 100%);
    color: white;
}

.use-cases-section .section-title {
    color: white;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.use-case {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.use-case h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
}

.use-case p {
    opacity: 0.9;
    line-height: 1.6;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-hover) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px var(--shadow-hover);
}

.step h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.white-label-section {
    padding: 80px 20px;
    background: var(--section-bg);
    text-align: center;
}

.white-label-content h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.white-label-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.faq-item {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid var(--accent-primary);
}

.faq-item h3 {
    font-size: 1.2em;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--gradient-hero-start) 0%, var(--gradient-hero-end) 100%);
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.95;
}

.footer {
    background: var(--section-bg);
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-keywords {
    margin-top: 10px;
    font-size: 0.9em;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
    }
    
    .hero-content h1 {
        font-size: 2em;
    }
    
    .hero-subtitle {
        font-size: 1.1em;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .url-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .url-actions {
        width: 100%;
    }
    
    .theme-toggle-landing {
        top: 20px;
        right: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}