/* ===== MODERN MOBILE-FIRST DESIGN ===== */

/* Hide WordPress Theme Elements - Only on frontend pages, not in wp-admin */
body:not(.wp-admin) #wpadminbar,
body:not(.wp-admin) .site-header,
body:not(.wp-admin) #masthead,
body:not(.wp-admin) .main-navigation,
body:not(.wp-admin) .site-navigation,
body:not(.wp-admin) .navigation,
body:not(.wp-admin) header.entry-header,
body:not(.wp-admin) .entry-title,
body:not(.wp-admin) .page-header,
body:not(.wp-admin) .site-branding,
body:not(.wp-admin) .custom-logo-link,
body:not(.wp-admin) #site-navigation,
body:not(.wp-admin) .menu-toggle,
body:not(.wp-admin) .site-title,
body:not(.wp-admin) .site-description,
body:not(.wp-admin) #primary-menu,
body:not(.wp-admin) .primary-menu,
body:not(.wp-admin) .menu,
body:not(.wp-admin) .nav-menu,
body:not(.wp-admin) .search-form,
body:not(.wp-admin) .widget-area,
body:not(.wp-admin) .sidebar,
body:not(.wp-admin) #secondary,
body:not(.wp-admin) .site-footer,
body:not(.wp-admin) #colophon,
body:not(.wp-admin) .breadcrumb,
body:not(.wp-admin) .breadcrumbs,
body:not(.wp-admin) .entry-meta,
body:not(.wp-admin) .edit-link,
body:not(.wp-admin) .post-edit-link,
body:not(.wp-admin) a[href*="wp-admin/post.php"],
body:not(.wp-admin) header[role="banner"],
body:not(.wp-admin) footer[role="contentinfo"],
body:not(.wp-admin) .site-info {
    display: none !important;
}

/* Hide specific page elements - Only on frontend */
body:not(.wp-admin) .page .entry-header,
body:not(.wp-admin) .single .entry-header,
body:not(.wp-admin) article header,
body:not(.wp-admin) .page-title,
body:not(.wp-admin) h1.entry-title,
body:not(.wp-admin) h1.page-title {
    display: none !important;
}

/* Adjust body padding when admin bar is hidden - Only on frontend */
body:not(.wp-admin).admin-bar {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

html:not(.wp-admin) {
    margin-top: 0 !important;
}

/* General Styles */
body:not(.wp-admin) {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #2d3748;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Plugin Container */
.rc-frontend-main {
    max-width: 100%;
    margin: 0 auto 10px auto;
    padding: 12px;
    background: linear-gradient(135deg, #93b7fe 0%, #7ab0f5 33%, #5fb2ea 66%, #3fa0d1 100%);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .rc-frontend-main {
        max-width: 480px;
        padding: 20px;
        margin: 20px auto;
        border-radius: 24px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }
}

/* Header Section */
.rc-header {
    text-align: center;
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
}

.rc-logo img {
    max-width: 180px;
}

.rc-sponsor-banner img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

/* Welcome Message */
.rc-welcome {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.rc-welcome strong {
    display: block;
    font-size: 28px;
    background: linear-gradient(135deg, #52076f 0%, #52076f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

/* Receptions List Section */
.rc-receptions-list {
    margin-bottom: 24px;
}

/* Modern Button Styles */
.rc-collapse-all, .rc-open-all {
    padding: 6px 12px;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin: 8px 4px;
    font-size: 14px;
    font-weight: 300;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rc-collapse-all:hover, .rc-open-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.rc-collapse-all:active, .rc-open-all:active {
    transform: translateY(0);
}

/* Date Section */
.rc-date-section {
    margin-bottom: 16px;
}

.rc-date-toggle {
    position: relative;
    background: black;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    width: 100%;
    cursor: pointer;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: white;
    z-index: 0;
}

/* Gradient border */
.rc-date-toggle::before {
    content: "";
    position: absolute;
    top: -4px;  /* same as border width */
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 20px; /* border-radius + border width */
    background: linear-gradient(135deg, #52076f, #853a99);
    z-index: -1;
}

.rc-date-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
}

.rc-date-events {
    padding-top: 12px;
}

/* Modern Card-Based Events Table */
.rc-events-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 5px 0;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.rc-events-table:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.rc-events-table th, .rc-events-table td {
    padding: 7px;
    text-align: left;
    font-size: 14px;
}

.rc-events-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-weight: 600;
    color: white;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.rc-events-table tr:nth-child(even) {
    background-color: #f7fafc;
}

.rc-events-table tr:nth-child(odd) {
    background-color: #ffffff;
}

.rc-events-table tr:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
}

/* Ensure strong tags are bold in events table */
.rc-events-table strong {
    font-weight: 700;
}

/* Event Host Toggle Row */
.rc-host-toggle {
    cursor: pointer;
    transition: all 0.2s ease;
}

.rc-host-toggle:active {
    transform: scale(0.98);
}

/* Event Details Section */
.rc-event-details {
    display: none;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
}

/* Event Details Table */
.rc-event-details table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

/* Table Cells */
.rc-event-details td {  
    text-align: left;
    font-size: 14px;
    background-color: transparent;
    padding: 12px;
}

/* Table Header Row */
.rc-event-details td strong {
    font-size: 15px;
    color: #2d3748;
    font-weight: 700;
}

/* Background Color for Status Row */
.rc-event-details td[style*="background-color"] {
    font-weight: 600;
    color: white;
    padding: 12px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Link Styling Inside Event Details */
.rc-event-details a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rc-event-details a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Form Fields */
.rc-event-details form {
    margin-top: 16px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.rc-event-details select {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    background: white;
    color: #2d3748;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

.rc-event-details select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.rc-event-details button {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rc-event-details button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.rc-event-details button:active {
    transform: translateY(0);
}

/* Additional Styling for Add to Calendar Links */
.rc-event-details td a {
    font-size: 13px;
    color: #667eea;
    display: inline-block;
    margin: 4px 0;
}

/* Uber Order Link - Make it stand out */
.rc-event-details td a[href*="uber"] {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
}

/* Styling for Google Map */
.google-map-container {
    margin-top: 20px;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.google-map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 16px;
}

/* Collapse Button Styling */
.rc-collapse-event {
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 300;
    margin-top: 6px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rc-collapse-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* Save Participation Button */
.rc-save-participation {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rc-save-participation:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* Participation Dropdown */
.rc-participation-dropdown {
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    width: 100%;
    background: white;
    transition: all 0.3s ease;
}

.rc-participation-dropdown:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Calendar Links */
.rc-add-to-google, .rc-add-to-outlook, .rc-download-ics {
    color: #667eea;
    text-decoration: none;
    margin-right: 12px;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
    padding: 4px 0;
    transition: all 0.2s ease;
}

.rc-add-to-google:hover, .rc-add-to-outlook:hover, .rc-download-ics:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Itinerary Buttons */
.rc-itinerary-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

@media (min-width: 768px) {
    .rc-itinerary-buttons {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .rc-frontend-main {
        padding: 10px;
        margin: 10px auto;
    }

    .rc-header {
    }

    .rc-logo img {
        max-width: 140px;
    }

    .rc-events-table th, .rc-events-table td {
        padding: 12px;
        font-size: 13px;
    }

    .rc-date-toggle {
        font-size: 16px;
        padding: 14px 16px;
    }

    .google-map-container {
        margin-top: 16px;
        border-radius: 12px;
    }
    
    .search-box-container {
        gap: 4px;
    }
    
    .search-box-container input[type="text"] {
        min-width: 100px;
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .search-button, .clear-button {
        padding: 10px 12px;
        font-size: 12px;
        letter-spacing: 0.3px;
    }
}

/* Desktop Enhancements */
@media (min-width: 768px) {
    .rc-events-table {
        border-radius: 20px;
    }
    
    .rc-event-details {
        padding: 24px;
    }
}

/* Horizontal Rule */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, #764ba2, transparent);
    margin: 24px 0;
    border-radius: 2px;
}

/* Small Font Class */
.small-font {
    font-size: 13px;
    line-height: 1.5;
    color: #718096;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

.small-font strong {
    color: #2d3748;
    font-weight: 600;
}

.small-font-strong {
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    font-weight: 600;
}

/* Participation Summary Table */
.participation-summary-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 20px 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    overflow: hidden;
    color: #52076f; /* sets the font color */
}

.participation-summary-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    padding: 16px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.participation-summary-table td {
    padding: 4px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.participation-summary-table tr:last-child td {
    border-bottom: none;
}

.participation-summary-table tr:nth-child(even) {
    background-color: #f7fafc;
}

.participation-summary-table tr:nth-child(odd) {
    background-color: #ffffff;
}

.participation-summary-table tr:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
}

.participation-summary-table tr:first-child td {
    font-weight: 700;
    color: #2d3748;
}

.participation-summary-table td:first-child {
    text-align: left;
}

.participation-summary-table td:last-child {
    text-align: center;
    font-weight: 600;
    color: #667eea;
}

@media (max-width: 768px) {
    .participation-summary-table {
        font-size: 13px;
        margin: 16px 0;
    }

    .participation-summary-table td {
        padding: 4px;
    }
    
    .participation-summary-table th {
        padding: 12px;
        font-size: 12px;
    }
}

/* Modern Search Box */
.search-box-container {
    margin: 20px 0;
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
}

.search-box-container input[type="text"] {
    flex: 1;
    min-width: 120px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.search-box-container input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.clear-button {
    padding: 12px 24px;
    background: #e2e8f0;
    color: #2d3748;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clear-button:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

/* Search Query Result */
.search-query-result {
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    margin: 12px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #667eea;
}

.search-query-result p {
    margin: 0;
    font-size: 14px;
    color: #2d3748;
}

.search-query-result strong {
    color: #667eea;
}

/* Button Container */
.button-container {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    flex-wrap: nowrap;
}

@media (max-width: 480px) {
    .rc-open-all, .rc-collapse-all {
        flex: 1;
        padding: 6px 8px;
        font-size: 12px;
    }
}

/* Pretty Button Container */
.prettybutton {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 12px 0;
}

.prettybutton a {
    text-decoration: none;
    width: 100%;
    display: block;
}

.prettybutton .pretty-button {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.prettybutton .pretty-button-big {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.prettybutton .pretty-button:hover,
.prettybutton .pretty-button-big:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
}

.prettybutton .pretty-button:active,
.prettybutton .pretty-button-big:active {
    transform: translateY(0);
}

/* Event Form (Admin) */
.event-form {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.event-form h3 {
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.event-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.event-form input,
.event-form select,
.event-form textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.event-form input:focus,
.event-form select:focus,
.event-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.event-form button {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading {
    animation: shimmer 2s infinite;
    background: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-size: 1000px 100%;
}

/* Smooth Transitions for All Interactive Elements */
* {
    transition-duration: 0.3s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Disable transitions on elements animated by jQuery */
.rc-date-events,
.rc-event-details {
    transition: none !important;
}

button, a, select, input {
    -webkit-tap-highlight-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}