/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

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

body {
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    line-height: 1.6;
    color: #2c1810;
    background: linear-gradient(135deg, #faf8f3 0%, #f0ead6 50%, #e8dcc0 100%);
    min-height: 100vh;
}

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

.container.full-width {
    max-width: none;
    padding: 0;
    margin: 0;
}

/* Header styles */
header {
    position: relative;
    height: 60vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(218, 165, 32, 0.8), 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.4);
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Content sections */
.content-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    margin: 2rem 0;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.2);
    border: 1px solid rgba(218, 165, 32, 0.1);
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #8B4513;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(218, 165, 32, 0.3);
    letter-spacing: 1px;
}

/* Prayer form styles */
.prayer-form {
    max-width: 900px;
    margin: 0 auto;
}

.requester-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    border: 2px solid rgba(218, 165, 32, 0.3);
}

.requester-section label {
    font-size: 1.2rem;
    color: #8B4513;
    margin-bottom: 1rem;
}

.requester-section input {
    max-width: 300px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

/* Prayer columns */
.prayer-columns {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.prayer-column {
    flex: 1;
    min-height: 500px;
    position: relative;
}

.defunti-column {
    border: 3px solid #000;
    border-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="border" patternUnits="userSpaceOnUse" width="10" height="10"><rect width="10" height="10" fill="%23000"/><rect x="2" y="2" width="6" height="6" fill="white"/></pattern></defs><rect width="100" height="100" fill="url(%23border)"/></svg>') 10;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('fotohome/morti.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top center;
    padding-top: 20px;
}

.viventi-column {
    border: 3px solid #dc143c;
    border-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="border" patternUnits="userSpaceOnUse" width="10" height="10"><rect width="10" height="10" fill="%23dc143c"/><rect x="2" y="2" width="6" height="6" fill="white"/></pattern></defs><rect width="100" height="100" fill="url(%23border)"/></svg>') 10;
    background: linear-gradient(rgba(139,0,0,0.6), rgba(139,0,0,0.6)), url('fotohome/vivi.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top center;
    padding-top: 20px;
}

.column-header {
    text-align: center;
    padding: 1rem;
    border-bottom: 2px solid;
    margin-bottom: 1rem;
}

.defunti-column .column-header {
    border-bottom-color: #000;
    background: rgba(0, 0, 0, 0.05);
}

.viventi-column .column-header {
    border-bottom-color: #dc143c;
    background: rgba(220, 20, 60, 0.05);
}

.column-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    background: rgba(0,0,0,0.7);
    padding: 0.5rem;
    border-radius: 5px;
    color: white;
}

.defunti-column h3 {
    color: #000;
}

.viventi-column h3 {
    color: #dc143c;
}

.column-content {
    padding: 1rem;
}

.name-input-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.name-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
}

.add-name-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: #654321;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-name-btn:hover {
    background: #8B4513;
    transform: scale(1.1);
}

.names-list {
    min-height: 300px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
}

.name-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    margin: 0.3rem 0;
    background: white;
    border-radius: 4px;
    border-left: 3px solid;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.defunti-column .name-item {
    border-left-color: #000;
}

.viventi-column .name-item {
    border-left-color: #dc143c;
}

.remove-name-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.remove-name-btn:hover {
    background: #c82333;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #654321;
    font-family: 'Cinzel', serif;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(218, 165, 32, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Cormorant Garamond', serif;
    background: rgba(255, 255, 255, 0.9);
    color: #2c1810;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #DAA520;
    box-shadow: 0 0 10px rgba(218, 165, 32, 0.3);
    background: rgba(255, 255, 255, 1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form buttons container */
.form-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin: 2rem auto 0;
    flex-wrap: wrap;
}

.submit-btn {
    background: linear-gradient(135deg, #654321 0%, #8B4513 50%, #A0522D 100%);
    color: #f5f3e7;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    margin: 0;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #CD853F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(218, 165, 32, 0.5);
}

/* PayPal button container styling */
.paypal-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.paypal-demo-text {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: #654321;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(218, 165, 32, 0.2);
    margin-bottom: 0.5rem;
}

.paypal-demo-button {
    background: linear-gradient(135deg, #0070ba 0%, #003087 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Cinzel', serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 112, 186, 0.3);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
    justify-content: center;
}

.paypal-demo-button:hover {
    background: linear-gradient(135deg, #005ea6 0%, #002973 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 112, 186, 0.4);
}

.paypal-demo-button svg {
    fill: currentColor;
}

/* Prayer list styles */
.prayer-list {
    margin-top: 3rem;
}

.prayer-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 10px;
    border-left: 4px solid #DAA520;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.2);
    transition: all 0.3s ease;
}

.prayer-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.3);
}

.prayer-name {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: #8B4513;
    margin-bottom: 0.5rem;
}

.prayer-text {
    color: #654321;
    line-height: 1.7;
}

.prayer-attribution {
    text-align: right;
    font-style: italic;
    color: #8B4513;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Form note */
.form-note {
    background: rgba(218, 165, 32, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(218, 165, 32, 0.3);
    margin-top: 1rem;
    font-style: italic;
    color: #654321;
    text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header {
        height: 50vh;
        margin-bottom: 30px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .content-section {
        padding: 2rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px 12px;
    }
    
    .submit-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .content-section {
        padding: 1.5rem 1rem;
    }
    
    .prayer-item {
        padding: 1rem;
    }
}