/* Vintage/Artisanal Theme for Devotion */

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

/* ===== CSS Variables ===== */
:root {
    /* Warm, vintage color palette */
    --cream: #faf8f3;
    --ivory: #f5f0e6;
    --parchment: #ede4d3;
    --sepia: #8b7355;
    --burgundy: #722f37;
    --forest: #2d4a3e;
    --gold: #b8860b;
    --copper: #b87333;
    --ink: #2c2416;
    
    /* Fonts */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Crimson Pro', Georgia, serif;
    
    /* Borders and decorations */
    --border-ornate: 2px solid var(--sepia);
    --shadow-paper: 
        0 1px 1px rgba(0,0,0,0.03),
        0 2px 4px rgba(0,0,0,0.04),
        0 4px 8px rgba(0,0,0,0.05);
    --shadow-raised: 
        0 2px 4px rgba(0,0,0,0.1),
        0 4px 12px rgba(0,0,0,0.08);
}

/* ===== Base Styles ===== */
body.vintage {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    letter-spacing: 0.01em;
}

/* ===== Typography ===== */
.vintage h1,
.vintage h2,
.vintage h3 {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.vintage h1 {
    font-size: 2rem;
    font-weight: 600;
}

.vintage h2 {
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}

/* Decorative underline for headings */
.vintage h2.decorated::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ===== Cards with Paper Texture ===== */
.vintage .card {
    background: var(--cream);
    background-image: 
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-blend-mode: soft-light;
    border: none;
    border-radius: 3px;
    box-shadow: var(--shadow-paper);
    position: relative;
    padding: 28px 32px;
}

/* Corner flourishes */
.vintage .card::before {
    content: '❧';
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 16px;
    color: var(--sepia);
    opacity: 0.4;
}

.vintage .card::after {
    content: '❧';
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 16px;
    color: var(--sepia);
    opacity: 0.4;
    transform: rotate(180deg);
}

/* Card with stitched border effect */
.vintage .card.stitched {
    border: 2px dashed var(--sepia);
    padding: 24px;
}

.vintage .card.stitched::before,
.vintage .card.stitched::after {
    display: none;
}

/* ===== Buttons - Wax Seal Style ===== */
.vintage .btn {
    position: relative;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 
        0 3px 0 rgba(0,0,0,0.15),
        0 4px 8px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.vintage .btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 5px 0 rgba(0,0,0,0.12),
        0 8px 16px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.vintage .btn:active {
    transform: translateY(1px);
    box-shadow: 
        0 1px 0 rgba(0,0,0,0.2),
        0 2px 4px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Primary button - Rich burgundy like a wax seal */
.vintage .btn-primary {
    background: linear-gradient(180deg, 
        #8b3a42 0%, 
        #722f37 40%, 
        #5a252c 100%);
    color: #f5e6d3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.vintage .btn-primary:hover {
    background: linear-gradient(180deg, 
        #9a4049 0%, 
        #823543 40%, 
        #6a2d33 100%);
}

/* Secondary button - Forest green */
.vintage .btn-secondary {
    background: linear-gradient(180deg, 
        #3d5a4a 0%, 
        #2d4a3e 40%, 
        #1e3a2f 100%);
    color: #e8f0e5;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.vintage .btn-secondary:hover {
    background: linear-gradient(180deg, 
        #4a6858 0%, 
        #3a5a4c 40%, 
        #2a4a3c 100%);
}

/* Tertiary button - Parchment/light */
.vintage .btn-tertiary {
    background: linear-gradient(180deg, 
        #f5f0e6 0%, 
        #ede4d3 40%, 
        #e0d5c1 100%);
    color: var(--ink);
    border: 1px solid var(--sepia);
}

.vintage .btn-tertiary:hover {
    background: linear-gradient(180deg, 
        #fff 0%, 
        #f5f0e6 40%, 
        #ede4d3 100%);
}

/* Small button variant */
.vintage .btn-sm {
    font-size: 0.85rem;
    padding: 8px 16px;
    letter-spacing: 0.03em;
}

/* Link-style button */
.vintage .btn-link {
    background: none;
    color: var(--burgundy);
    box-shadow: none;
    padding: 8px 12px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.vintage .btn-link:hover {
    color: var(--copper);
    transform: none;
    box-shadow: none;
}

/* ===== Form Controls ===== */
.vintage input[type="text"],
.vintage input[type="email"],
.vintage input[type="date"],
.vintage textarea,
.vintage select {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 12px 14px;
    background: var(--ivory);
    border: 1px solid rgba(139, 115, 85, 0.3);
    border-radius: 3px;
    transition: all 0.2s;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.vintage input:focus,
.vintage textarea:focus,
.vintage select:focus {
    outline: none;
    border-color: var(--burgundy);
    box-shadow: 
        inset 0 1px 3px rgba(0,0,0,0.05),
        0 0 0 2px rgba(114, 47, 55, 0.1);
}

.vintage label {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--sepia);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    display: block;
}

/* ===== Decorative Dividers ===== */
.vintage .divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--sepia);
    opacity: 0.6;
}

.vintage .divider::before,
.vintage .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
}

.vintage .divider-icon {
    font-size: 18px;
}

/* ===== Task/Item Cards ===== */
.vintage .task-item {
    background: var(--ivory);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-left: 4px solid var(--forest);
    border-radius: 2px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-paper);
    transition: all 0.2s;
}

.vintage .task-item:hover {
    border-left-color: var(--burgundy);
    box-shadow: var(--shadow-raised);
}

.vintage .task-item.high-priority {
    border-left-color: var(--burgundy);
    background: linear-gradient(135deg, var(--ivory) 0%, #fdf5f5 100%);
}

.vintage .task-item.completed {
    border-left-color: var(--gold);
    background: linear-gradient(135deg, var(--ivory) 0%, #f9f6ed 100%);
}

/* ===== Badge/Tag Styles ===== */
.vintage .badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 2px;
    border: 1px solid currentColor;
}

.vintage .badge-priority {
    color: var(--burgundy);
    background: rgba(114, 47, 55, 0.08);
}

.vintage .badge-category {
    color: var(--forest);
    background: rgba(45, 74, 62, 0.08);
}

/* ===== Ornamental Flourishes ===== */
.vintage .flourish {
    text-align: center;
    color: var(--sepia);
    opacity: 0.5;
    font-size: 24px;
    letter-spacing: 8px;
    margin: 20px 0;
}

/* ===== Links ===== */
.vintage a {
    color: var(--burgundy);
    text-decoration: underline;
    text-decoration-color: rgba(114, 47, 55, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s;
}

.vintage a:hover {
    color: var(--copper);
    text-decoration-color: var(--copper);
}

/* ===== Choice Cards (for landing page) ===== */
.vintage .choice-card {
    background: var(--cream);
    border: 2px solid var(--sepia);
    border-radius: 4px;
    padding: 32px 28px;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow-raised);
    transition: all 0.3s ease;
    position: relative;
}

.vintage .choice-card::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid var(--sepia);
    border-radius: 2px;
    opacity: 0.3;
    pointer-events: none;
}

.vintage .choice-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 8px 24px rgba(0,0,0,0.12),
        0 4px 8px rgba(0,0,0,0.08);
    border-color: var(--burgundy);
}

.vintage .choice-card h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--ink);
    margin-top: 12px;
}

.vintage .choice-card p {
    font-size: 0.95rem;
    color: var(--sepia);
    margin-top: 8px;
}

.vintage .choice-card .icon {
    font-size: 48px;
    margin-bottom: 8px;
}

/* ===== Stats Display ===== */
.vintage .stat-box {
    background: var(--ivory);
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 2px;
    padding: 16px;
    text-align: center;
}

.vintage .stat-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sepia);
}

.vintage .stat-value {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ink);
    margin-top: 4px;
}

.vintage .stat-value.highlight {
    color: var(--burgundy);
}

/* ===== Header Bar ===== */
.vintage .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(139, 115, 85, 0.2);
    margin-bottom: 32px;
}

.vintage .header-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--cream);
    display: flex;
    align-items: center;
    gap: 10px;
}

.vintage .header-nav {
    display: flex;
    gap: 20px;
}

.vintage .header-nav a {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.9;
}

.vintage .header-nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ===== Empty States ===== */
.vintage .empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--sepia);
}

.vintage .empty-state .icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.vintage .empty-state p {
    font-style: italic;
}

/* ===== Rating Stars ===== */
.vintage .rating-stars {
    display: inline-flex;
    gap: 2px;
}

.vintage .rating-stars .star {
    color: var(--gold);
    font-size: 1.1rem;
}

.vintage .rating-stars .star.empty {
    opacity: 0.3;
}
