/*
Theme Name: FaceShape Dark
Theme URI: https://faceshapeai.online
Author: FaceShape AI Team
Author URI: https://faceshapeai.online
Description: A custom dark theme for FaceShape AI detection website
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: faceshape-dark
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #0f0f0f;
    color: #e4e4e7;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
}

/* Header styles */
.site-header {
    background-color: #18181b;
    padding: 0;
    border-bottom: 1px solid #27272a;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.site-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: #fafafa;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-title a:hover {
    color: #3b82f6;
}

.logo-placeholder {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 6px;
}

/* Navigation menu */
.main-navigation {
    display: flex;
    align-items: center;
}

.primary-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.primary-menu li {
    margin: 0;
}

.primary-menu a {
    color: #a1a1aa;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    transition: all 0.2s ease;
    position: relative;
}

.primary-menu a:hover {
    color: #fafafa;
}

.primary-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3b82f6;
    transition: width 0.2s ease;
}

.primary-menu a:hover::after {
    width: 100%;
}

.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
    color: #fafafa;
}

.primary-menu .current-menu-item > a::after,
.primary-menu .current_page_item > a::after {
    width: 100%;
    height: 2px;
    background-color: #3b82f6;
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fafafa;
    font-size: 24px;
    cursor: pointer;
}

/* Main content area */
.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, #18181b 0%, #0f0f0f 100%);
    border-radius: 16px;
    padding: 80px 40px;
    text-align: center;
    margin: 30px 0;
    border: 1px solid #27272a;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fafafa;
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    color: #a1a1aa;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Features section */
.features-section {
    margin: 80px 0;
}

.features-section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #fafafa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: #18181b;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid #27272a;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: #3b82f6;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0 auto 20px;
}

.feature-item h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fafafa;
}

.feature-item p {
    color: #a1a1aa;
    line-height: 1.6;
}

/* Face shape section */
.face-shape-section {
    margin: 80px 0;
}

.page-content {
    background-color: #18181b;
    border-radius: 16px;
    padding: 50px;
    border: 1px solid #27272a;
}

.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #fafafa;
    text-align: center;
}

/* Face shape characteristics section */
.face-shape-characteristics-section {
    margin: 80px 0;
}

.face-shape-characteristics-section .section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fafafa;
}

.face-shape-characteristics-section .section-description {
    text-align: center;
    color: #a1a1aa;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.face-shapes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.face-shape-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.face-shape-image {
    margin-bottom: 25px;
}

.face-shape-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.face-shape-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fafafa;
}

.face-shape-content p {
    color: #a1a1aa;
    line-height: 1.6;
}

/* Info section */
.info-section {
    margin: 80px 0;
}

.info-section h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 60px;
    color: #fafafa;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.info-item {
    background-color: #18181b;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid #27272a;
}

.info-item h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fafafa;
}

.info-item p {
    color: #a1a1aa;
    line-height: 1.6;
}

/* Blog section */
.blog-section {
    margin: 80px 0;
}

.blog-section .section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fafafa;
}

.blog-section .section-description {
    text-align: center;
    color: #a1a1aa;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.blog-item {
    background-color: #18181b;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #27272a;
    transition: all 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: #3b82f6;
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-item:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
}

.blog-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fafafa;
}

.blog-title a {
    color: #fafafa;
    text-decoration: none;
}

.blog-title a:hover {
    color: #3b82f6;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #71717a;
}

.blog-category {
    background-color: #3b82f6;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.blog-excerpt {
    color: #a1a1aa;
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-read-more {
    color: #3b82f6;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-read-more:hover {
    text-decoration: underline;
}

.blog-view-all {
    text-align: center;
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #a1a1aa;
}

/* FAQ section */
.faq-section {
    margin: 80px 0;
}

.faq-section .section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fafafa;
}

.faq-section .section-description {
    text-align: center;
    color: #a1a1aa;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #27272a;
    background-color: #18181b;
}

.faq-question {
    width: 100%;
    background-color: #18181b;
    border: none;
    padding: 20px 25px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #fafafa;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: #27272a;
}

.question-text {
    flex: 1;
    text-align: left;
}

.faq-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px;
    color: #a1a1aa;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 25px;
}

/* Footer styles */
.site-footer {
    background-color: #18181b;
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 1px solid #27272a;
}

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

.footer-column h3 {
    color: #fafafa;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column p {
    color: #a1a1aa;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #a1a1aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-column ul li a:hover {
    color: #3b82f6;
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: #a1a1aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-menu a:hover {
    color: #3b82f6;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #27272a;
}

.footer-bottom p {
    color: #71717a;
    margin: 0;
    font-size: 14px;
}

/* Buttons */
.button, button, input[type="button"], input[type="submit"] {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.button:hover, button:hover, input[type="button"]:hover, input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(59, 130, 246, 0.3);
}

.button:active, button:active, input[type="button"]:active, input[type="submit"]:active {
    transform: translateY(0);
}

/* Forms */
input, select, textarea {
    background-color: #27272a;
    border: 1px solid #3f3f46;
    color: #fafafa;
    padding: 14px 16px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    width: 100%;
    transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Links */
a {
    color: #3b82f6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #fafafa;
    margin-bottom: 15px;
    line-height: 1.3;
}

h1 {
    font-size: 48px;
    font-weight: 800;
}

h2 {
    font-size: 36px;
    font-weight: 700;
}

h3 {
    font-size: 24px;
    font-weight: 600;
}

/* Lists */
ul, ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

li {
    margin-bottom: 8px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: #27272a;
    border-radius: 12px;
    overflow: hidden;
}

th, td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #3f3f46;
}

th {
    background-color: #3f3f46;
    color: #fafafa;
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: #3f3f46;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    .primary-menu {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-section {
        padding: 60px 20px;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .features-section h2,
    .info-section h2,
    .face-shape-section .page-title,
    .face-shape-characteristics-section .section-title,
    .blog-section .section-title,
    .faq-section .section-title {
        font-size: 28px;
    }
    
    .feature-item,
    .info-item,
    .face-shape-item,
    .blog-item {
        padding: 30px 20px;
    }
    
    .page-content,
    .face-shape-section .page-content,
    .face-shape-characteristics-section .page-content,
    .blog-section .page-content,
    .faq-section .page-content {
        padding: 30px 20px;
    }
    
    .page-title,
    .face-shape-characteristics-section .section-title,
    .blog-section .section-title,
    .faq-section .section-title {
        font-size: 28px;
    }
    
    .face-shape-characteristics-section .section-description,
    .blog-section .section-description,
    .faq-section .section-description {
        font-size: 16px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .face-shapes-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .face-shape-content h3,
    .blog-title {
        font-size: 20px;
    }
    
    .faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .faq-answer {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}