/*
Theme Name: LianaAutomation
Theme URI: https://liana.fi
Author: Liana Technologies
Author URI: https://liana.fi
Description: Tehosta jäsenviestintää automaation avulla. Räätälöity WordPress-blokki­teema liitoille ja jäsenyhdistyksille. Kaikki kuvat, tekstit ja linkit ovat muokattavissa WordPress-hallinnassa.
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lianaautomation
Tags: block-theme, full-site-editing, one-column, custom-colors, custom-menu, editor-style, featured-images, responsive-design

LianaAutomation - Jäsenviestinnän automaatio liitoille ja jäsenyhdistyksille
*/

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Body base styles */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Card styles with proper rounded corners and hover effects */
.wp-block-group.has-card-background-color,
.wp-block-group.has-border-color {
    border-radius: 0.5rem !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wp-block-group.has-card-background-color:hover,
.wp-block-group.has-border-color:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Quote block styling - green left border */
.wp-block-quote {
    border-left: 4px solid var(--wp--preset--color--primary, #3d9f5e);
    padding-left: 1rem;
    margin: 0;
    font-style: italic;
}

.wp-block-quote p {
    color: var(--wp--preset--color--foreground, #36423d);
}

/* Button transitions */
.wp-block-button__link {
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    font-weight: 500;
}

.wp-block-button__link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Secondary/outline button style */
.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: #ffffff;
    color: var(--wp--preset--color--foreground, #36423d);
    border: 1px solid var(--wp--preset--color--border, #cde9dd);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--background, #e6f5ee);
}

/* Image border radius */
.wp-block-image img {
    border-radius: 0.5rem;
}

/* List styling with green checkmarks */
.wp-block-list {
    padding-left: 0;
    list-style: none;
}

.wp-block-list li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    padding-left: 1.5rem;
    position: relative;
}

.wp-block-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--wp--preset--color--primary, #3d9f5e);
    font-weight: 700;
}

/* Navigation link styling */
.wp-block-navigation-link a {
    font-weight: 500;
}

/* Form input styling */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    border: 1px solid var(--wp--preset--color--border, #cde9dd);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    width: 100%;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--wp--preset--color--primary, #3d9f5e);
    box-shadow: 0 0 0 3px rgba(61, 159, 94, 0.1);
}

/* Gravity Forms styling */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper textarea {
    border: 1px solid var(--wp--preset--color--border, #cde9dd) !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem !important;
}

.gform_wrapper .gform_button {
    background-color: var(--wp--preset--color--primary, #3d9f5e) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.gform_wrapper .gform_button:hover {
    background-color: var(--wp--preset--color--primary-hover, #358a52) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wp-block-columns {
        flex-direction: column;
    }
    
    .wp-block-column {
        flex-basis: 100% !important;
    }
    
    h1.wp-block-heading {
        font-size: 2rem !important;
    }
    
    h2.wp-block-heading {
        font-size: 1.75rem !important;
    }
}

/* Fix for columns alignment */
.wp-block-columns.are-vertically-aligned-center {
    align-items: center;
}

/* Social links styling */
.wp-block-social-links {
    gap: 1rem;
}

/* Separator styling */
.wp-block-separator {
    border-color: var(--wp--preset--color--border, #cde9dd);
    opacity: 1;
}

.gform_wrapper {
    max-width: 670px;
    margin: 0 auto;
}

/* Center the submit button */
.gform_wrapper .gform_footer,
.gform_wrapper .gform-footer {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.gform_button {
    width: auto !important;
    min-width: 150px;
    padding: 0.625rem 1.25rem !important;
    font-size: 0.875rem !important;
    max-height: 40px !important;
}
