/*
Theme Name: free-books-gradient-mesh
Theme URI: https://free-books.site/
Author: Manus AI
Author URI: https://manus.im/
Description: グラデーションメッシュデザイン - カラフル、グラデーション、モダン
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --color-primary: #f97316;
    --color-secondary: #ec4899;
    --color-accent: #8b5cf6;
    --color-bg: #ffffff;
    --color-bg-secondary: #fef3c7;
    --color-text: #1f2937;
    --color-text-secondary: #6b7280;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-text);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    background-attachment: fixed;
    line-height: 1.7;
    font-size: 16px;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-title {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(90deg, #f97316, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--color-text);
    font-weight: 600;
}

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

/* Site Description */
.site-description {
    text-align: center;
    margin-bottom: 60px;
    padding: 50px 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.site-description h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #f97316, #ec4899, #8b5cf6, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.site-description p {
    font-size: 20px;
    color: var(--color-text-secondary);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

/* Post Card */
.post-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #f97316, #ec4899, #8b5cf6);
}

.post-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.post-thumbnail {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    position: relative;
}

.post-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent, rgba(249, 115, 22, 0.2));
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.1) rotate(-2deg);
}

.post-content {
    padding: 28px;
}

.post-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.3;
    background: linear-gradient(90deg, #f97316, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-title a {
    background: linear-gradient(90deg, #f97316, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-meta {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 14px;
    padding: 6px 14px;
    background: linear-gradient(90deg, #fef3c7, #fde68a);
    border-radius: 20px;
    display: inline-block;
}

.post-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 18px;
}

.read-more {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    background: linear-gradient(90deg, #f97316, #ec4899);
    color: white;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.read-more:hover {
    background: linear-gradient(90deg, #ec4899, #8b5cf6);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.4);
}

/* Affiliate Button */
.affiliate-button {
    display: inline-block;
    padding: 18px 36px;
    background: linear-gradient(90deg, #f97316, #ec4899, #8b5cf6);
    color: white !important;
    font-weight: 700;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
    font-size: 16px;
}

.affiliate-button:hover {
    background: linear-gradient(90deg, #8b5cf6, #ec4899, #f97316);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.6);
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px 0;
    text-align: center;
    margin-top: 80px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

footer p {
    color: var(--color-text-secondary);
    font-size: 14px;
}

/* Pagination */
.pagination {
    margin-top: 60px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 12px 20px;
    margin: 0 6px;
    border-radius: 20px;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: linear-gradient(90deg, #f97316, #ec4899);
    color: white;
    transform: translateY(-2px);
}

.pagination .current {
    background: linear-gradient(90deg, #f97316, #ec4899);
    color: white;
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .site-description h1 {
        font-size: 40px;
    }

    .post-thumbnail {
        height: 220px;
    }

    .container {
        padding: 40px 16px;
    }
}
