/*
Theme Name: Van Grunsven Kerncijfers
Description: Professional database theme voor Van Grunsven Groep met GREX, OPEX en V.O.N. prijsdata beheer
Author: Van Grunsven Development Team
Version: 1.0.0
License: GPL v2 or later
Text Domain: van-grunsven-kerncijfers
*/

* {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Van Grunsven official color scheme */
:root {
    --vg-primary: #77AC3E;        /* Van Grunsven Groen - RGB 119/172/62 */
    --vg-primary-dark: #5F8B32;   /* Donkerder groen voor hover states */
    --vg-primary-light: #8FBE54;  /* Lichter groen voor accenten */
    --vg-black: #000000;          /* Van Grunsven Zwart - RGB 0/0/0 */
    --vg-light-gray: #F4F4F4;     /* Van Grunsven Lichtgrijs - RGB 244/244/244 */
    --vg-beige: #E8E5DE;          /* Van Grunsven Beige - RGB 232/229/222 */
    --vg-light-beige: #E6E2BF;    /* Van Grunsven Lichtbeige - RGB 230/226/191 */
    --vg-white: #ffffff;
    --vg-success: #059669;
    --vg-warning: #d97706;
    --vg-error: #dc2626;
}

/* Enhanced button styles with Van Grunsven colors */
.btn-vg-primary {
    background: var(--vg-primary);
    color: white;
    border: none;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px 0 rgba(119, 172, 62, 0.3);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-vg-primary:hover {
    background: var(--vg-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(119, 172, 62, 0.4);
    color: white;
    text-decoration: none;
}

.btn-vg-secondary {
    background: transparent;
    color: var(--vg-primary);
    border: 2px solid var(--vg-primary);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-vg-secondary:hover {
    background: var(--vg-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(119, 172, 62, 0.3);
    text-decoration: none;
}

.btn-vg-accent {
    background: var(--vg-primary-light);
    color: white;
    border: none;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px 0 rgba(143, 190, 84, 0.3);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-vg-accent:hover {
    background: var(--vg-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(119, 172, 62, 0.4);
    color: white;
    text-decoration: none;
}

/* Enhanced card styles */
.card-vg {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    padding: 2rem;
    margin-bottom: 2rem;
}

.card-vg:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(119, 172, 62, 0.2);
}

.card-vg:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--vg-primary), var(--vg-primary-light));
    transition: left 0.3s ease;
}

.card-vg:hover:before {
    left: 0;
}

/* Enhanced input styles */
.input-vg {
    background: var(--vg-light-gray);
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 16px;
    color: var(--vg-black);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1rem;
    width: 100%;
}

.input-vg:focus {
    outline: none;
    background: white;
    border-color: var(--vg-primary);
    box-shadow: 0 0 0 4px rgba(119, 172, 62, 0.1), 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Enhanced typography with Van Grunsven colors */
.text-vg-hero {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--vg-primary) 0%, var(--vg-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Montserrat', sans-serif;
}

.text-vg-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--vg-black);
    font-family: 'Montserrat', sans-serif;
}

.text-vg-subtitle {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
    color: var(--vg-black);
    font-family: 'Montserrat', sans-serif;
}

.text-vg-heading {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--vg-black);
    font-family: 'Montserrat', sans-serif;
}

/* Enhanced status indicators */
.status-vg-success {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-left: 4px solid var(--vg-success);
    color: var(--vg-success);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
}

.status-vg-warning {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
    border: 1px solid rgba(217, 119, 6, 0.2);
    border-left: 4px solid var(--vg-warning);
    color: var(--vg-warning);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
}

.status-vg-error {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-left: 4px solid var(--vg-error);
    color: var(--vg-error);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
}

/* Price display */
.price-display {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--vg-primary);
}

/* Enhanced animations */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Enhanced background */
body {
    background: linear-gradient(135deg, var(--vg-light-gray) 0%, var(--vg-beige) 100%);
    position: relative;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Enhanced scrollbar */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: var(--vg-light-gray);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--vg-primary) 0%, var(--vg-primary-light) 100%);
    border-radius: 6px;
    border: 2px solid var(--vg-light-gray);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--vg-primary-dark) 0%, var(--vg-primary) 100%);
}

/* Container and layout */
.vg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.vg-section {
    padding: 4rem 0;
}

.vg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Header styling */
.vg-header {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--vg-primary);
}

.vg-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.vg-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--vg-primary);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

.vg-logo:hover {
    color: var(--vg-primary-dark);
    text-decoration: none;
}

/* Menu styling */
.vg-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.vg-menu a {
    color: var(--vg-black);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.vg-menu a:hover {
    background: var(--vg-primary);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Hero section */
.vg-hero {
    background: linear-gradient(135deg, var(--vg-primary) 0%, var(--vg-primary-dark) 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vg-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" fill-opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" fill-opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" fill-opacity="0.1"/><circle cx="10" cy="90" r="1" fill="white" fill-opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.vg-hero-content {
    position: relative;
    z-index: 1;
}

.vg-hero h1 {
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.vg-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer styling */
.vg-footer {
    background: var(--vg-black);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.vg-footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.vg-footer h3 {
    margin-bottom: 1rem;
    color: var(--vg-primary-light);
}

.vg-footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vg-container {
        padding: 0 1rem;
    }
    
    .vg-menu {
        display: none;
    }
    
    .vg-grid {
        grid-template-columns: 1fr;
    }
    
    .card-vg {
        padding: 1rem;
    }
}

/* WordPress specific resets */
.wp-caption {
    max-width: 100%;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin: 0 1rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1rem;
}

/* Utility classes */
.bg-vg-primary { background-color: var(--vg-primary); }
.bg-vg-primary-light { background-color: var(--vg-primary-light); }
.bg-vg-beige { background-color: var(--vg-beige); }
.bg-vg-light-beige { background-color: var(--vg-light-beige); }
.text-vg-primary { color: var(--vg-primary); }
.border-vg-primary { border-color: var(--vg-primary); }