/*
Theme Name: Learningo
Theme URI: https://learningo.app
Author: Learningo Team
Author URI: https://learningo.app
Description: フラッシュカード暗記アプリ「Learningo」のランディングページテーマ
Version: 1.0.0
License: GPL v2 or later
Text Domain: learningo
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2d3748;
}

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

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.feature-card p {
    color: #718096;
    line-height: 1.6;
}

/* Demo Section */
.demo {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.demo h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2d3748;
}

.flashcard-demo {
    max-width: 500px;
    margin: 0 auto;
}

.flashcard {
    width: 100%;
    height: 300px;
    position: relative;
    cursor: pointer;
    perspective: 1000px;
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flashcard.flipped .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.flashcard-front {
    background-color: white;
    color: #2d3748;
}

.flashcard-back {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: rotateY(180deg);
}

/* Footer */
.footer {
    background-color: #2d3748;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer p {
    opacity: 0.8;
}

/* Single Post Styles */
.single-post {
    padding: 60px 0;
    background-color: white;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-title {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-meta {
    color: #718096;
    font-size: 0.9rem;
}

.post-meta span {
    margin: 0 10px;
}

.post-meta span:first-child {
    margin-left: 0;
}

.post-thumbnail {
    margin-bottom: 40px;
    text-align: center;
}

.post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
}

.post-content h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: #2d3748;
}

.post-content h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: #2d3748;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.post-content a:hover {
    border-bottom-color: #667eea;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 5px;
}

.post-content blockquote {
    border-left: 4px solid #667eea;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #718096;
}

.post-content ul,
.post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.tag-label {
    font-weight: 600;
    color: #4a5568;
}

.post-tags a {
    display: inline-block;
    margin: 5px 5px 5px 0;
    padding: 5px 15px;
    background-color: #f7fafc;
    color: #667eea;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.post-tags a:hover {
    background-color: #edf2f7;
}

.post-navigation {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
}

.post-navigation a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.post-navigation a:hover {
    color: #764ba2;
}

/* Page Styles */
.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

.page-content {
    padding: 60px 0;
    background-color: white;
}

.page-content .container {
    max-width: 800px;
}

.page-thumbnail {
    margin-bottom: 40px;
    text-align: center;
}

.page-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.page-content .content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a5568;
}

.page-content .content h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: #2d3748;
}

.page-content .content h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: #2d3748;
}

.page-content .content p {
    margin-bottom: 20px;
}

.page-content .content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.page-content .content a:hover {
    border-bottom-color: #667eea;
}

.page-content .content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 5px;
}

.page-content .content ul,
.page-content .content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.page-content .content li {
    margin-bottom: 10px;
}

.page-links {
    margin-top: 40px;
    text-align: center;
    font-weight: 500;
}

.page-links a {
    color: #667eea;
    margin: 0 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .features h2,
    .demo h2 {
        font-size: 2rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }
}