/* Custom Styles for CuñaPay Static Site */

:root {
    --green-dark: #086046;
    --green: #14845f;
    --yellow: #fab238;
    --white: #ffffff;
    --gray: #484848;
    --bg-soft: #f5f5f5;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--gray);
    background-color: var(--white);
}

html {
    scroll-behavior: smooth;
}

/* Buttons */
.btn-primary {
    background-color: var(--green);
    color: white;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--green-dark);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--yellow);
    color: var(--green-dark);
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: rgba(250, 178, 56, 0.9);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Cards */
.card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: all 0.3s;
    border: 1px solid rgba(8, 96, 70, 0.1);
}

.card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    border-color: rgba(8, 96, 70, 0.2);
}

/* Code Blocks */
.code-block {
    background-color: #1a1a1a;
    color: #e5e5e5;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

/* Section Title Gradient */
.section-title {
    background: linear-gradient(135deg, #086046 0%, #14845f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Organization */
.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navbar specific adjustments */
nav .section-container {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    nav .section-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    nav .section-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 640px) {
    .section-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .section-container {
        padding: 0 2rem;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .section-header {
        margin-bottom: 4rem;
    }
}

.section-header-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--green);
    margin: 0 auto 1rem;
}

@media (min-width: 640px) {
    .section-header-icon {
        width: 3rem;
        height: 3rem;
        margin-bottom: 1.5rem;
    }
}

.section-subtitle {
    font-size: 1rem;
    color: rgba(72, 72, 72, 0.8);
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .section-subtitle {
        font-size: 1.125rem;
    }
}

/* Consistent spacing for sections */
.content-section {
    padding: 3rem 0;
}

@media (min-width: 640px) {
    .content-section {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .content-section {
        padding: 5rem 0;
    }
}

/* Icon alignment */
.icon-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .icon-title-wrapper {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
}

.icon-title-wrapper svg {
    flex-shrink: 0;
}

/* Grid improvements */
.feature-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* FAQ Styles */
.faq-answer {
    transition: all 0.3s ease;
}

/* Method Badges */
.method-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.method-get {
    background-color: var(--green);
}

.method-post {
    background-color: var(--yellow);
    color: var(--green-dark);
}

.method-put {
    background-color: #f97316;
}

.method-delete {
    background-color: #ef4444;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .card {
        padding: 1rem;
    }
    
    .code-block {
        font-size: 0.75rem;
        padding: 0.75rem;
    }
    
    .code-block pre {
        word-break: break-all;
        white-space: pre-wrap;
    }
}

/* Table responsive */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table thead {
        display: none;
    }
    
    table tbody {
        display: block;
    }
    
    table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        padding: 0.75rem;
    }
    
    table td {
        display: block;
        text-align: right;
        padding: 0.5rem;
        border: none;
    }
    
    table td:before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: var(--gray);
    }
}

