/*
Theme Name: Digital Card - כרטיס ביקור דיגיטלי
Theme URI: https://example.com/digital-card
Author: Eyal
Author URI: https://example.com
Description: תבנית וורדפרס לכרטיס ביקור דיגיטלי - עם ממשק Customizer מלא לניהול תמונות, טקסטים, אייקונים, סרטונים ותמונות גלריה. תמיכה מלאה ב-RTL.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: digital-card
Tags: rtl-language-support, one-column, custom-colors, custom-logo
*/

/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    --dc-primary: #2c3e50;
    --dc-secondary: #e74c3c;
    --dc-accent: #f39c12;
    --dc-bg: #ffffff;
    --dc-text: #333333;
    --dc-text-light: #666666;
    --dc-border: #e0e0e0;
    --dc-card-bg: #f8f9fa;
    --dc-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --dc-radius: 12px;
    --dc-font-body: 'Heebo', 'Assistant', sans-serif;
    --dc-font-heading: 'Rubik', 'Heebo', sans-serif;
    --dc-max-width: 480px;
    --dc-icon-size: 50px;
    --dc-icon-color: #ffffff;
    --dc-icon-bg: var(--dc-primary);
}

/* ========================================
   Global Reset & Base
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--dc-font-body);
    color: var(--dc-text);
    background: var(--dc-bg);
    direction: rtl;
    text-align: right;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ========================================
   Main Container
   ======================================== */
.dc-wrapper {
    max-width: var(--dc-max-width);
    margin: 0 auto;
    background: var(--dc-bg);
    min-height: 100vh;
    box-shadow: var(--dc-shadow);
    overflow: hidden;
}

/* ========================================
   Header / Hero Section
   ======================================== */
.dc-header {
    position: relative;
    background: var(--dc-primary);
    padding: 0 0 40px;
    text-align: center;
    overflow: hidden;
}

.dc-header__banner {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.dc-header__avatar-wrap {
    width: 150px;
    height: 150px;
    margin: -75px auto 20px;
    position: relative;
    z-index: 2;
}

.dc-header__avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--dc-bg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: block;
}

.dc-header__name {
    font-family: var(--dc-font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.dc-header__subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    font-weight: 300;
    line-height: 1.5;
}

/* ========================================
   Description Section
   ======================================== */
.dc-description {
    padding: 30px 25px;
    text-align: center;
}

.dc-description__text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--dc-text);
}

.dc-description__text p {
    margin-bottom: 15px;
}

.dc-description__text p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Dividers
   ======================================== */
.dc-divider {
    padding: 10px 25px;
    text-align: center;
}

/* Style 1: Simple Line */
.dc-divider--line hr {
    border: none;
    height: 2px;
    background: var(--dc-border);
    max-width: 80%;
    margin: 0 auto;
}

/* Style 2: Dotted */
.dc-divider--dotted hr {
    border: none;
    height: 0;
    border-bottom: 3px dotted var(--dc-border);
    max-width: 80%;
    margin: 0 auto;
}

/* Style 3: Dashed */
.dc-divider--dashed hr {
    border: none;
    height: 0;
    border-bottom: 2px dashed var(--dc-border);
    max-width: 80%;
    margin: 0 auto;
}

/* Style 4: Dots ornament */
.dc-divider--dots::before {
    content: '● ● ●';
    color: var(--dc-accent);
    font-size: 0.8rem;
    letter-spacing: 12px;
}

/* Style 5: Flower ornament */
.dc-divider--flowers::before {
    content: '✿ ❀ ✿';
    color: var(--dc-accent);
    font-size: 1.1rem;
    letter-spacing: 10px;
}

/* Style 6: Stars */
.dc-divider--stars::before {
    content: '★ ✦ ★';
    color: var(--dc-accent);
    font-size: 1rem;
    letter-spacing: 10px;
}

/* Style 7: Leaves */
.dc-divider--leaves::before {
    content: '🌿 ✦ 🌿';
    font-size: 1rem;
    letter-spacing: 8px;
}

/* Style 8: Diamond */
.dc-divider--diamond::before {
    content: '◆ ◇ ◆';
    color: var(--dc-accent);
    font-size: 0.9rem;
    letter-spacing: 10px;
}

/* Style 9: Gradient Line */
.dc-divider--gradient hr {
    border: none;
    height: 3px;
    background: linear-gradient(to left, transparent, var(--dc-accent), transparent);
    max-width: 80%;
    margin: 0 auto;
}

/* Style 10: Wave */
.dc-divider--wave::before {
    content: '〰〰〰〰〰';
    color: var(--dc-accent);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* Style 11: Geometric */
.dc-divider--geometric::before {
    content: '▲ ▽ ▲ ▽ ▲';
    color: var(--dc-accent);
    font-size: 0.7rem;
    letter-spacing: 8px;
}

/* ========================================
   Icons / Contact Buttons
   ======================================== */
.dc-icons {
    padding: 25px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.dc-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: calc(33.333% - 14px);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.dc-icon-item:hover {
    transform: translateY(-3px);
}

.dc-icon-item__circle {
    width: var(--dc-icon-size);
    height: var(--dc-icon-size);
    border-radius: 50%;
    background: var(--dc-icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

.dc-icon-item:hover .dc-icon-item__circle {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: scale(1.05);
}

.dc-icon-item__circle svg {
    width: 24px;
    height: 24px;
    fill: var(--dc-icon-color);
}

.dc-icon-item__label {
    font-size: 0.75rem;
    color: var(--dc-text-light);
    text-align: center;
}

/* ========================================
   VCF Download Button
   ======================================== */
.dc-vcf-wrap {
    padding: 10px 25px 25px;
    text-align: center;
}

.dc-vcf-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: var(--dc-primary);
    color: #ffffff;
    border-radius: 50px;
    font-family: var(--dc-font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.dc-vcf-btn:hover {
    background: var(--dc-secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    color: #ffffff;
}

.dc-vcf-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ========================================
   Section Title
   ======================================== */
.dc-section-title {
    font-family: var(--dc-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dc-primary);
    text-align: center;
    padding: 25px 25px 15px;
    position: relative;
}

.dc-section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--dc-accent);
    margin: 10px auto 0;
    border-radius: 3px;
}

/* ========================================
   About Section
   ======================================== */
.dc-about {
    padding: 0 25px 25px;
}

.dc-about__text {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--dc-text);
}

.dc-about__text p {
    margin-bottom: 12px;
}

/* ========================================
   Videos Section
   ======================================== */
.dc-videos {
    padding: 0 25px 25px;
}

.dc-video-item {
    margin-bottom: 20px;
    border-radius: var(--dc-radius);
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.dc-video-item video,
.dc-video-item iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
}

.dc-video-item__title {
    padding: 12px 15px;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--dc-card-bg);
    color: var(--dc-text);
}

/* ========================================
   Gallery / Image Carousel
   ======================================== */
.dc-gallery {
    padding: 0 0 25px;
    overflow: hidden;
}

.dc-gallery__track {
    display: flex;
    gap: 15px;
    padding: 0 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.dc-gallery__track::-webkit-scrollbar {
    display: none;
}

.dc-gallery__item {
    flex: 0 0 280px;
    scroll-snap-align: center;
    border-radius: var(--dc-radius);
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.dc-gallery__item:hover {
    transform: scale(1.02);
}

.dc-gallery__item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Gallery auto-scroll animation (spiral-like) */
@keyframes dc-scroll-gallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-280px * var(--dc-gallery-count, 3) - 15px * var(--dc-gallery-count, 3))); }
}

.dc-gallery__track--auto {
    animation: dc-scroll-gallery 20s linear infinite;
    width: max-content;
}

.dc-gallery__track--auto:hover {
    animation-play-state: paused;
}

/* ========================================
   CTA / WhatsApp Button
   ======================================== */
.dc-cta-wrap {
    padding: 20px 25px 30px;
    text-align: center;
}

.dc-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background: #25D366;
    color: #ffffff;
    border-radius: 50px;
    font-family: var(--dc-font-body);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    transition: all 0.3s ease;
}

.dc-cta-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: #ffffff;
}

.dc-cta-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* ========================================
   Footer / Credits
   ======================================== */
.dc-footer {
    padding: 25px;
    text-align: center;
    background: var(--dc-card-bg);
    border-top: 1px solid var(--dc-border);
}

.dc-footer__text {
    font-size: 0.85rem;
    color: var(--dc-text-light);
    line-height: 1.6;
}

.dc-footer__text a {
    color: var(--dc-primary);
    font-weight: 600;
}

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

/* ========================================
   Share Section
   ======================================== */
.dc-share {
    padding: 15px 25px 25px;
    text-align: center;
}

.dc-share__title {
    font-size: 0.95rem;
    color: var(--dc-text-light);
    margin-bottom: 12px;
}

.dc-share__buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.dc-share__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dc-share__btn--whatsapp { background: #25D366; }
.dc-share__btn--facebook { background: #1877F2; }
.dc-share__btn--copy { background: var(--dc-primary); }

.dc-share__btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.dc-share__btn svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

/* ========================================
   Custom Section (generic editable)
   ======================================== */
.dc-custom-section {
    padding: 0 25px 25px;
}

.dc-custom-section__content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--dc-text);
}

.dc-custom-section__content a {
    color: var(--dc-secondary);
    text-decoration: underline;
}

.dc-custom-section__content a:hover {
    color: var(--dc-primary);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 480px) {
    .dc-wrapper {
        box-shadow: none;
    }
    
    .dc-header__banner {
        height: 160px;
    }
    
    .dc-header__avatar-wrap {
        width: 120px;
        height: 120px;
        margin-top: -60px;
    }
    
    .dc-header__avatar {
        width: 120px;
        height: 120px;
    }
    
    .dc-header__name {
        font-size: 1.5rem;
    }
    
    .dc-gallery__item {
        flex: 0 0 240px;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes dc-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dc-animate {
    animation: dc-fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.dc-animate--delay-1 { animation-delay: 0.1s; }
.dc-animate--delay-2 { animation-delay: 0.2s; }
.dc-animate--delay-3 { animation-delay: 0.3s; }
.dc-animate--delay-4 { animation-delay: 0.4s; }
