/* Frontend 2 - Modern Dating Sites Theme */
/* SEO Optimized, Red/Rose Theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e11d48;
    --primary-dark: #be123c;
    --primary-light: #fb7185;
    --primary-50: #fff1f2;
    --primary-100: #ffe4e6;
    --secondary: #f43f5e;
    --secondary-dark: #e11d48;
    --success: #10b981;
    --warning: #f59e0b;
    --star: #fbbf24;
    --dark: #1e293b;
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-lg: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==================== HEADER ==================== */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: var(--white);
    font-size: 0.875rem;
    cursor: pointer;
    color: var(--gray-700);
}

/* ==================== HERO ==================== */
.hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero h1 { font-size: 2.75rem; }
}

/* ==================== MAIN ==================== */
main { padding-bottom: 3rem; }

/* ==================== ARTICLE CARDS ==================== */
.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.article-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.article-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.article-card:hover h2 { color: var(--primary); }

.article-card p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.7;
    font-size: 0.9375rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* ==================== ARTICLE DETAIL ==================== */
.article-header {
    text-align: center;
    padding: 2rem 0 1.5rem;
    margin-bottom: 1.5rem;
}

.article-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.article-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .article-header h1 { font-size: 2.25rem; }
}

.article-header-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.article-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .article-content { padding: 2rem; }
}

.article-content h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 1.5rem 0 0.75rem;
}

.article-content h2:first-child { margin-top: 0; }

.article-content p {
    margin-bottom: 1rem;
    color: var(--gray-700);
    line-height: 1.8;
}

.article-content ul, .article-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

/* ==================== COMPARISON TABLE - DESKTOP ==================== */
.comparison-section {
    margin: 0 0 2rem;
}

/* Desktop Table */
.comparison-table {
    display: none;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

@media (min-width: 768px) {
    .comparison-table { display: table; }
    .comparison-cards { display: none; }
}

.comparison-table thead {
    background: var(--primary-50);
    border-bottom: 2px solid var(--primary-100);
}

.comparison-table th {
    padding: 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table th:first-child { width: 60px; text-align: center; }
.comparison-table th:nth-child(3) { width: 120px; text-align: center; }
.comparison-table th:nth-child(4) { width: 100px; text-align: center; }
.comparison-table th:last-child { width: 160px; text-align: center; }

.comparison-table tbody tr {
    border-bottom: 1px solid var(--gray-100);
    transition: background 0.2s;
}

.comparison-table tbody tr:hover { background: var(--gray-50); }
.comparison-table tbody tr:last-child { border-bottom: none; }

.comparison-table td {
    padding: 1rem;
    vertical-align: middle;
}

.comparison-table td:first-child { text-align: center; }
.comparison-table td:nth-child(3) { text-align: center; }
.comparison-table td:nth-child(4) { text-align: center; }
.comparison-table td:last-child { text-align: center; }

/* Table Cell Content */
.table-rank {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    background: var(--gray-100);
    color: var(--gray-600);
}

.table-rank--gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: var(--white);
}

.table-site {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.table-site__logo {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.table-site__info { flex: 1; }

.table-site__badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.table-site__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.table-site__tagline {
    font-size: 0.8125rem;
    color: var(--primary);
    margin: 0.125rem 0 0;
}

.table-site__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.table-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--gray-600);
}

.table-feature__icon {
    color: var(--success);
    font-size: 0.875rem;
}

.table-rating__score {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
    display: block;
}

.table-rating__stars {
    color: var(--star);
    font-size: 0.75rem;
    display: block;
    margin: 0.125rem 0;
}

.table-rating__label {
    font-size: 0.6875rem;
    color: var(--gray-500);
}

.table-users__value {
    font-weight: 600;
    color: var(--success);
    display: block;
}

.table-users__label {
    font-size: 0.6875rem;
    color: var(--gray-500);
}

/* CTA Button */
.table-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.table-cta,
.table-cta:link,
.table-cta:visited,
.table-cta:hover,
.table-cta:active { color: #ffffff; text-decoration: none; }

.table-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ==================== COMPARISON CARDS - MOBILE ==================== */
.comparison-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .comparison-cards { display: none; }
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    position: relative;
}

.card--featured {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, var(--primary-50) 0%, var(--white) 100%);
}

.card__badge {
    position: absolute;
    top: 0;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 0.25rem 0.625rem;
    border-radius: 0 0 6px 6px;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card__header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1rem;
}

.card__rank {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    background: var(--gray-100);
    color: var(--gray-600);
    flex-shrink: 0;
}

.card__rank--gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: var(--white);
}

.card__logo {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.card__info { flex: 1; min-width: 0; }

.card__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.card__rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.25rem;
}

.card__score {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--gray-900);
}

.card__stars {
    color: var(--star);
    font-size: 0.75rem;
}

.card__label {
    font-size: 0.6875rem;
    color: var(--success);
    font-weight: 600;
}

.card__tagline {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 8px;
}

.card__feature {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--gray-700);
}

.card__feature-icon {
    width: 14px;
    height: 14px;
    background: var(--success);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    flex-shrink: 0;
}

.card__cta {
    display: block;
    width: 100%;
    padding: 0.875rem;
    background: var(--primary);
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card__cta,
.card__cta:link,
.card__cta:visited,
.card__cta:hover,
.card__cta:active { color: #ffffff; text-decoration: none; }

.card__cta:hover { background: var(--primary-dark); }

/* Disclaimer */
.disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 1rem;
}

/* ==================== COMMENTS ==================== */
.comments-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.comments-section h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.comment-card {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.comment-card:last-child { border-bottom: none; }

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
}

.comment-author { font-weight: 600; color: var(--gray-900); font-size: 0.9375rem; }
.comment-date { font-size: 0.75rem; color: var(--gray-400); margin-left: auto; }
.comment-stars { color: var(--star); font-size: 0.75rem; }
.comment-text { color: var(--gray-600); line-height: 1.6; font-size: 0.9375rem; }

/* ==================== NEWSLETTER ==================== */
.newsletter {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.newsletter h3 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.newsletter p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .newsletter-form { flex-direction: row; }
}

.newsletter-form input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 0.875rem 1.5rem;
    background: var(--gray-900);
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-form button,
.newsletter-form button:hover { color: #ffffff; }

.newsletter-form button:hover { background: var(--gray-800); }

/* ==================== FOOTER ==================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 2.5rem 0;
    margin-top: 3rem;
}

.footer-inner { text-align: center; }

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
    color: #ffffff;
}

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.footer p {
    max-width: 500px;
    margin: 0 auto 1.5rem;
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-copyright {
    font-size: 0.75rem;
    color: var(--gray-500);
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-800);
}

/* ==================== PAGE CONTENT ==================== */
.page-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .page-content { padding: 2rem; }
}

.page-content h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    text-align: center;
}

.page-content-body {
    color: var(--gray-700);
    line-height: 1.8;
}

.page-content-body h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 1.5rem 0 0.75rem;
}

.page-content-body p { margin-bottom: 1rem; }

/* ==================== ERROR PAGE ==================== */
.error-page {
    text-align: center;
    padding: 4rem 1rem;
}

.error-page h1 {
    font-size: 2rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.error-page p {
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* ==================== UTILITIES ==================== */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
