/**
 * WP Cookie Consent CSS
 * Tyylitiedosto evästebannerin ja modaalin ulkoasulle
 */

/* Evästebanneri */
.wp-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #000000;
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999999;
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.wp-cookie-banner.wp-cookie-banner-top {
    top: 0;
    bottom: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wp-cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.wp-cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.wp-cookie-banner-text p {
    margin: 0;
    color: inherit;
}

.wp-cookie-banner-text a {
    color: #007cba;
    text-decoration: underline;
}

.wp-cookie-banner-text a:hover {
    color: #005a87;
}

.wp-cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* Painikkeet */
.wp-cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    min-width: 100px;
    text-align: center;
}

.wp-cookie-btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.wp-cookie-btn-primary {
    background: #007cba;
    color: #ffffff;
}

.wp-cookie-btn-primary:hover {
    background: #005a87;
    color: #ffffff;
}

.wp-cookie-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

.wp-cookie-btn-secondary:hover {
    background: #ffffff;
    color: #000000;
}

.wp-cookie-btn-text {
    background: transparent;
    color: #ffffff;
    border: none;
    text-decoration: underline;
    min-width: auto;
    padding: 5px 10px;
}

.wp-cookie-btn-text:hover {
    color: #cccccc;
}

/* Modaali */
.wp-cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wp-cookie-modal {
    background: #ffffff;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wp-cookie-modal-header {
    padding: 20px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.wp-cookie-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333333;
}

.wp-cookie-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.wp-cookie-modal-close:hover {
    background: #f0f0f0;
    color: #333333;
}

.wp-cookie-modal-content {
    padding: 0 20px;
}

.wp-cookie-modal-content p {
    color: #666666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Evästekategoriat */
.wp-cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #f9f9f9;
}

.wp-cookie-category-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin-bottom: 8px;
}

.wp-cookie-category-checkbox {
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.wp-cookie-category-name {
    font-weight: 600;
    color: #333333;
    font-size: 16px;
}

.wp-cookie-category-description {
    margin: 8px 0 0 24px;
    color: #666666;
    font-size: 14px;
    line-height: 1.5;
}

.wp-cookie-category input[disabled] + .wp-cookie-category-name {
    color: #999999;
}

.wp-cookie-modal-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

/* Evästeiden hallintapaneeli (shortcode) */
.wp-cookie-preferences {
    max-width: 600px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wp-cookie-preferences h3 {
    margin-bottom: 20px;
    color: #333333;
}

.wp-cookie-preferences .wp-cookie-category {
    margin-bottom: 15px;
}

.wp-cookie-preferences-actions {
    margin-top: 20px;
}

/* Pysyvä asetuspainike */
.wp-cookie-settings-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #007cba;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999998;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wp-cookie-settings-button:hover {
    background: #005a87;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.wp-cookie-settings-button:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.wp-cookie-settings-button.wp-cookie-settings-visible {
    display: flex;
}

/* Tooltip asetuspainikkeelle */
.wp-cookie-settings-button::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: #333333;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000000;
}

.wp-cookie-settings-button::after {
    content: '';
    position: absolute;
    bottom: 52px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333333;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000000;
}

.wp-cookie-settings-button:hover::before,
.wp-cookie-settings-button:hover::after {
    opacity: 1;
}

/* Estetyt upotukset */
.blocked-embed {
    background: #f0f0f0;
    border: 2px dashed #cccccc;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    margin: 20px 0;
}

.blocked-embed p {
    margin-bottom: 15px;
    color: #666666;
}

.enable-embed-btn {
    background: #007cba;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.enable-embed-btn:hover {
    backgroun/* Responsiivinen suunnittelu */
@media (max-width: 768px) {
    .wp-cookie-banner {
        padding: 15px;
        font-size: 13px;
    }
    
    .wp-cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .wp-cookie-banner-text {
        min-width: auto;
        margin-bottom: 10px;
    }
    
    .wp-cookie-banner-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .wp-cookie-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .wp-cookie-modal {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .wp-cookie-modal-header,
    .wp-cookie-modal-content,
    .wp-cookie-modal-footer {
        padding: 15px;
    }
    
    .wp-cookie-category-description {
        margin-left: 0;
        margin-top: 5px;
    }
    
    /* Asetuspainike mobiilissa */
    .wp-cookie-settings-button {
        bottom: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .wp-cookie-settings-button::before {
        bottom: 55px;
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .wp-cookie-settings-button::after {
        bottom: 47px;
    }
}

@media (max-width: 480px) {
    .wp-cookie-banner {
        padding: 12px;
        font-size: 12px;
    }
    
    .wp-cookie-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .wp-cookie-modal {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    /* Asetuspainike pienissä näytöissä */
    .wp-cookie-settings-button {
        bottom: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .wp-cookie-settings-button::before {
        bottom: 50px;
        font-size: 10px;
        padding: 5px 8px;
    }
    
    .wp-cookie-settings-button::after {
        bottom: 42px;
    }
}ransform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.wp-cookie-banner-visible {
    animation: slideUp 0.3s ease-out;
}

.wp-cookie-banner-top.wp-cookie-banner-visible {
    animation: slideDown 0.3s ease-out;
}

.wp-cookie-modal-overlay {
    animation: fadeIn 0.3s ease-out;
}

.wp-cookie-modal {
    animation: fadeIn 0.3s ease-out;
}

/* Saavutettavuus */
.wp-cookie-banner:focus-within,
.wp-cookie-modal:focus-within {
    outline: none;
}

.wp-cookie-btn:focus,
.wp-cookie-modal-close:focus,
.wp-cookie-category-checkbox:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Tulostus */
@media print {
    .wp-cookie-banner,
    .wp-cookie-modal-overlay {
        display: none !important;
    }
}

/* Korkean kontrastin tuki */
@media (prefers-contrast: high) {
    .wp-cookie-banner {
        border: 2px solid #ffffff;
    }
    
    .wp-cookie-modal {
        border: 2px solid #000000;
    }
    
    .wp-cookie-category {
        border: 2px solid #000000;
    }
}

/* Liikkeen vähentäminen */
@media (prefers-reduced-motion: reduce) {
    .wp-cookie-banner-visible,
    .wp-cookie-banner-top.wp-cookie-banner-visible,
    .wp-cookie-modal-overlay,
    .wp-cookie-modal {
        animation: none;
    }
    
    .wp-cookie-btn,
    .wp-cookie-modal-close,
    .enable-embed-btn {
        transition: none;
    }
}

/* Tumma teema */
@media (prefers-color-scheme: dark) {
    .wp-cookie-modal {
        background: #1a1a1a;
        color: #ffffff;
    }
    
    .wp-cookie-modal-header {
        border-bottom-color: #333333;
    }
    
    .wp-cookie-modal-header h3 {
        color: #ffffff;
    }
    
    .wp-cookie-modal-close {
        color: #cccccc;
    }
    
    .wp-cookie-modal-close:hover {
        background: #333333;
        color: #ffffff;
    }
    
    .wp-cookie-modal-content p {
        color: #cccccc;
    }
    
    .wp-cookie-category {
        background: #2a2a2a;
        border-color: #444444;
    }
    
    .wp-cookie-category-name {
        color: #ffffff;
    }
    
    .wp-cookie-category-description {
        color: #cccccc;
    }
    
    .wp-cookie-modal-footer {
        border-top-color: #333333;
    }
    
    .blocked-embed {
        background: #2a2a2a;
        border-color: #444444;
    }
    
    .blocked-embed p {
        color: #cccccc;
    }
}

