/* section-style.css: Contains all custom section/component styles for KudoStar UI */

/* Board Tiles Section */
.section-title {
    text-align: center;
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.board-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.board-tile {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border-top: 6px solid #ddd;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.board-tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.tile-icon {
    font-size: 3em;
    margin-bottom: 20px;
    color: #555;
}

.board-tile h3 {
    margin: 0 0 15px 0;
    font-size: 1.5em;
    color: #2c3e50;
    font-weight: 600;
}

.board-tile p {
    color: #555;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

/* Trusted By Sliding Logo Bar */
.trusted-by-section {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 40px 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    margin-bottom: 40px;
    border-radius: 15px;
    margin-top: 20px;
}

.trusted-title {
    text-align: center;
    color: #7f8c8d;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    font-weight: 600;
}

.slider-wrapper {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.slider-wrapper:hover {
    animation-play-state: paused;
}

.slide-item {
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: 700;
    color: #95a5a6;
    text-transform: uppercase;
    font-family: 'Arial Black', sans-serif;
    opacity: 0.7;
    transition: opacity 0.3s, color 0.3s;
}

.slide-item:hover {
    opacity: 1;
    color: #2c3e50;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-2000px); }
}

/* Hero Section Enhancements */
.hero {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 80px 20px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    margin-bottom: 50px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero h2 {
    font-size: 3.5em;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.hero p {
    font-size: 1.3em;
    color: #34495e;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

.hero .btn {
    font-size: 1.2em;
    padding: 15px 35px;
    border-radius: 30px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.6);
}

/* Dashboard Section Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-header h2 {
    margin: 0;
    font-size: 2.2em;
    color: #2c3e50;
    font-weight: 700;
}

.dashboard-header .btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255,107,107,0.15);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.dashboard-header .btn:hover {
    background: linear-gradient(135deg, #ff8e53 0%, #ff6b6b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,107,107,0.25);
}

.board-list {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    padding: 30px 25px;
    margin-bottom: 40px;
}

.board-list h3 {
    margin-top: 0;
    color: #34495e;
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 25px;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.board-item {
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 170px;
}

.board-info-main strong {
    font-size: 1.2em;
    color: #2c3e50;
}

.board-info-main small {
    color: #888;
    margin-left: 8px;
}

.board-info-details small {
    color: #aaa;
    margin-right: 15px;
}

.board-stats {
    margin-top: 10px;
    color: #888;
    font-size: 0.95em;
}

.board-actions {
    margin-top: 18px;
}

.btn-view {
    background: #8ec5fc;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.btn-view:hover {
    background: #6ea8fe;
    transform: translateY(-2px);
}

.no-boards-message {
    text-align: center;
    color: #888;
    padding: 40px 0;
    background: #f9f9f9;
    border-radius: 10px;
    margin-top: 30px;
}

.no-boards-message i {
    font-size: 2.5em;
    color: #ccc;
    margin-bottom: 10px;
}

.no-boards-message p {
    margin: 10px 0 18px 0;
    font-size: 1.1em;
}

/* Board Page Section Styles */
.bg-layer {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -2;
    background-size: cover;
    background-position: center;
    filter: blur(2px) brightness(0.95);
}

.bg-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    background: linear-gradient(120deg, rgba(224,195,252,0.25) 0%, rgba(142,197,252,0.25) 100%);
}

.board-header {
    background: rgba(255,255,255,0.92);
    border-radius: 15px;
    padding: 35px 25px 25px 25px;
    margin-bottom: 30px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    text-align: center;
}

.board-header h2 {
    margin: 0 0 10px 0;
    font-size: 2.3em;
    color: #2c3e50;
    font-weight: 700;
}

.board-header p {
    color: #555;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.view-counter {
    color: #888;
    font-size: 1em;
    margin-bottom: 10px;
}

.share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.share-link input[type="text"] {
    width: 320px;
    padding: 7px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    color: #333;
    background: #f8f8f8;
}

.copy-btn {
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 16px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #ff8e53;
}

.add-post-btn {
    display: inline-block;
    margin: 0 auto 30px auto;
    background: #8ec5fc;
    color: #fff;
    border-radius: 20px;
    padding: 10px 22px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.add-post-btn:hover {
    background: #6ea8fe;
    transform: translateY(-2px);
}

/* Responsive Masonry Layout for board.php */
.masonry-grid {
    column-count: 3;
    column-gap: 22px;
    margin-bottom: 40px;
}
@media (max-width: 900px) {
    .masonry-grid {
        column-count: 2;
    }
}
@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }
}

.post-card {
    display: block;
    break-inside: avoid;
    margin-bottom: 18px;
    /* ...existing .post-card styles... */
}

/* Compact, modern post-card styles for board messages */
.post-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(142,197,252,0.13), 0 1.5px 6px rgba(0,0,0,0.07);
    padding: 16px 14px 14px 14px;
    display: flex;
    flex-direction: column;
    min-height: 90px;
    border-left: 5px solid #8ec5fc;
    position: relative;
    transition: box-shadow 0.18s, transform 0.18s;
    margin-bottom: 8px;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.post-card:hover {
    box-shadow: 0 8px 24px rgba(142,197,252,0.18), 0 3px 12px rgba(0,0,0,0.10);
    transform: translateY(-2px) scale(1.01);
    z-index: 2;
}

.post-author {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 7px;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-message {
    color: #34495e;
    font-size: 1em;
    margin-bottom: 8px;
    line-height: 1.5;
    word-break: break-word;
}

.post-image {
    max-width: 100%;
    border-radius: 7px;
    margin-top: 8px;
    box-shadow: 0 1px 4px rgba(142,197,252,0.10);
    border: 1px solid #e0c3fc;
}

.post-card:after {
    content: '';
}

#toast {
    visibility: hidden;
    min-width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 12px 18px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    font-size: 1.1em;
    opacity: 0;
    transition: opacity 0.4s, visibility 0.4s;
}

#toast.show {
    visibility: visible;
    opacity: 1;
}

.post-form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}
.post-form-container h2 {
    color: #333;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
}
.post-form-container p {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1em;
}
.form-group label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    display: block;
}
.form-control {
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.form-control:focus {
    border-color: #e65100;
    box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.15);
    outline: none;
}
.message-input-wrapper {
    position: relative;
}
#emoji-trigger {
    position: absolute;
    right: 10px;
    top: 10px;
    background: none;
    border: none;
    font-size: 1.5em;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
}
#emoji-trigger:hover {
    color: #e65100;
}
.btn-submit, .btn-cancel, .gif-toggle-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-submit {
    background-color: #e65100;
    color: white;
    font-size: 1.1em;
    margin-top: 20px;
}
.btn-submit:hover {
    background-color: #d54500;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.btn-cancel {
    background-color: #f1f1f1;
    color: #555;
    margin-top: 10px;
}
.btn-cancel:hover {
    background-color: #e0e0e0;
}
.gif-toggle-btn {
    background-color: #3498db;
    color: white;
}
.gif-toggle-btn:hover {
    background-color: #2980b9;
}
.gif-search-container {
    margin-top: 15px;
}
.gif-search-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.gif-search-input-wrapper input {
    flex-grow: 1;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}
.gif-search-input-wrapper button {
    padding: 10px 15px;
    background: #e65100;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.gif-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}
.gif-option {
    width: 100%;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    border: 3px solid transparent;
    transition: border-color 0.2s;
}
.gif-option:hover, .gif-option.selected {
    border-color: #e65100;
}
.custom-file-upload {
    display: block;
    padding: 20px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}
.custom-file-upload:hover {
    border-color: #e65100;
}
.custom-file-upload input {
    display: none;
}
.custom-file-upload i {
    color: #888;
    margin-bottom: 10px;
}


.main-content { flex: 1 0 auto; }
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
}
header h1 a { color: #e65100; }
header nav { display: flex; align-items: center; gap: 15px; }

/* Highlight the new menu item */
.nav-highlight {
    background-color: #ffe0b2;
    padding: 8px 15px;
    border-radius: 20px;
    color: #e65100 !important;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.nav-highlight:hover {
    background-color: #ffcc80;
    transform: translateY(-2px);
}

.hr-hero {
    text-align: center;
    padding: 100px 20px;
    color: white;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?q=80&w=1920&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
}
.hr-hero h2 {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hr-hero p {
    font-size: 1.4em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
.hr-hero .btn {
    font-size: 1.2em; padding: 15px 35px; border-radius: 30px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    display: inline-block;
    text-decoration: none;
}
.hr-hero .btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.4); }

.content-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 50px 40px;
    margin: 40px auto;
    max-width: 1100px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.section-title {
    text-align: center;
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 40px;
    font-weight: 600;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.feature-item {
    text-align: center;
}
.feature-item .icon {
    font-size: 3em;
    margin-bottom: 20px;
    height: 80px;
    width: 80px;
    line-height: 80px;
    border-radius: 50%;
    background: #f8f9fa;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.feature-item h3 {
    font-size: 1.4em;
    color: #34495e;
    margin-bottom: 10px;
}
.feature-item p {
    color: #555;
    line-height: 1.7;
}

/* Specific icon colors */
.icon-email { color: #e74c3c; }
.icon-memories { color: #9b59b6; }
.icon-global { color: #3498db; }

.testimonial {
    margin-top: 50px;
    border-top: 1px solid #eee;
    padding-top: 40px;
    text-align: center;
    font-style: italic;
    color: #444; /* Dark grey for better visibility */
    font-size: 1.2em;
}
.testimonial blockquote {
    max-width: 700px;
    margin: 0 auto 20px auto;
    border: none;
    padding: 0;
    color: #333; /* Darker grey for quote */
}
.testimonial footer {
    font-style: normal;
    font-weight: 600;
    color: #e65100; /* Vibrant orange to make the author pop out against any background */
    display: block; /* Ensure it sits on its own line */
    margin-top: 10px;
}

.pricing-hero {
    text-align: center;
    padding: 60px 20px 40px;
}
.pricing-hero h2 {
    font-size: 3em;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}
.pricing-hero p {
    font-size: 1.2em;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}
.pricing-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
    flex-wrap: wrap;
}
.pricing-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px 30px;
    width: 100%;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 6px solid #ddd;
    display: flex;
    flex-direction: column;
}
.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Card Specific Colors */
.card-free { border-top-color: #95a5a6; }
.card-premium { border-top-color: #9b59b6; transform: scale(1.05); box-shadow: 0 15px 40px rgba(155, 89, 182, 0.2); }
.card-premium:hover { transform: scale(1.05) translateY(-10px); }
.card-business { border-top-color: #2980b9; }

.card-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.card-price {
    font-size: 2.5em;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}
.card-price span {
    font-size: 0.4em;
    color: #7f8c8d;
    font-weight: 400;
}
.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
    flex-grow: 1;
}
.card-features li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f4f8;
    color: #555;
    font-size: 0.95em;
}
.card-features li:last-child {
    border-bottom: none;
}
.card-features i {
    color: #2ecc71;
    margin-right: 10px;
}
.btn-plan {
    display: block;
    width: 100%;
    padding: 15px;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    border: 2px solid transparent;
    box-sizing: border-box; /* Crucial fix for keeping it inside parent div */
}
.btn-free {
    background: transparent;
    color: #7f8c8d;
    border-color: #bdc3c7;
}
.btn-free:hover {
    background: #f8f9fa;
    color: #333;
}
.btn-premium {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}
.btn-premium:hover {
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.6);
}
.btn-business {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}
.btn-business:hover {
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}
.popular-badge {
    background: #f39c12;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.policy-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    line-height: 1.8;
}
.policy-container h2 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f4f8;
    padding-bottom: 10px;
}
.policy-container h3 {
    font-size: 1.8em;
    color: #34495e;
    margin-top: 30px;
    margin-bottom: 15px;
}
.policy-container p, .policy-container ul {
    color: #555;
    font-size: 1.05em;
}
.policy-container ul {
    padding-left: 20px;
}
.policy-container li {
    margin-bottom: 10px;
}
.policy-container strong {
    color: #333;
}
.highlight {
    background-color: #fff3cd;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}
