/* 
 * Main Stylesheet for บันทึกรายรับรายจ่าย Pro
 * Author: บริษัท ไฮเทคซอฟต์แวร์ จำกัด
 */

/* Base Styles */
:root {
    --primary-color: #fd5400;
    --secondary-color: #ff9d00;
    --dark-color: #000000;
    --light-color: #ffffff;
    --gray-color: #f5f5f5;
    --text-color: #212529;
    --border-radius: 10px;
}

body {
    font-family: 'Sarabun', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

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

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

.btn {
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* Header Styles */
.site-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 600;
}

.nav-link {
    font-weight: 500;
    margin: 0 5px;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    margin-bottom: 60px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #555;
}

.hero-buttons {
    margin-bottom: 30px;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Feature Highlights */
.feature-highlights {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.feature-card {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

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

/* App Screenshots */
.app-screenshots {
    padding: 80px 0;
    background-color: var(--gray-color);
}

.screenshot-slider {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}

.screenshot-item {
    flex: 0 0 auto;
    width: 250px;
    scroll-snap-align: center;
}

.screenshot-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
}

.testimonial-card {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    height: 100%;
}

.rating {
    color: #ffb800;
    margin-bottom: 15px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--dark-color);
}

/* Download CTA */
.download-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--light-color);
}

.download-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.download-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Features Page */
.features-list {
    margin: 50px 0;
}

.feature-item {
    display: flex;
    margin-bottom: 40px;
    align-items: center;
}

.feature-item:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-item-image {
    flex: 0 0 40%;
    padding: 20px;
}

.feature-item-image img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-item-content {
    flex: 0 0 60%;
    padding: 20px;
}

.feature-item-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Screenshots Gallery */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.screenshot-gallery-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.screenshot-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.screenshot-gallery-item img {
    width: 100%;
    height: auto;
}

/* Download Page */
.download-options {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin: 40px 0;
}

.download-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    width: 300px;
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.download-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.download-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.download-description {
    color: #666;
    margin-bottom: 20px;
}

/* Privacy Policy */
.privacy-policy {
    padding: 60px 0;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.last-updated {
    color: #666;
    margin-bottom: 30px;
}

.policy-content {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-content h2 {
    font-size: 1.8rem;
    margin: 30px 0 15px;
    color: var(--primary-color);
}

.policy-content p, .policy-content ul, .policy-content address {
    margin-bottom: 15px;
}

.policy-content ul {
    padding-left: 20px;
}

.policy-content strong {
    font-weight: 600;
}

/* Contact Page */
.contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
}

.form-control {
    border-radius: 5px;
    padding: 12px 15px;
    margin-bottom: 20px;
}

.contact-info {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 30px;
    border-radius: var(--border-radius);
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-info-icon {
    font-size: 1.5rem;
    margin-right: 15px;
}

/* Footer */
.site-footer {
    border-top: 5px solid var(--primary-color);
}

.site-footer h5 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--light-color);
}

.site-footer a {
    color: #ccc;
    transition: all 0.3s ease;
}

.site-footer a:hover {
    color: var(--light-color);
    text-decoration: none;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-item, .feature-item:nth-child(even) {
        flex-direction: column;
    }
    
    .feature-item-image, .feature-item-content {
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 30px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .screenshot-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    .screenshot-gallery {
        grid-template-columns: 1fr;
    }
    
    .download-card {
        width: 100%;
    }
}