/* Conference Manager Frontend Styles */

/* Load Font Awesome for modern icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Modern Conference Actions Styles */
.modern-conference-actions {
    margin: 30px 0;
    padding: 0;
    background: transparent;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
}

.action-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.action-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header i {
    font-size: 18px;
    opacity: 0.9;
}

.card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.card-body {
    padding: 20px;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 44px;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

.action-btn i {
    font-size: 16px;
}

.action-btn span {
    font-size: 13px;
    font-weight: 500;
}

/* Platform-specific button colors */
.google-btn { background: #4285f4; }
.google-btn:hover { background: #3367d6; }

.yahoo-btn { background: #6001d2; }
.yahoo-btn:hover { background: #5200b3; }

.outlook-btn { background: #0078d4; }
.outlook-btn:hover { background: #106ebe; }

.facebook-btn { background: #1877f2; }
.facebook-btn:hover { background: #166fe5; }

.instagram-btn { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
}
.instagram-btn:hover { 
    background: linear-gradient(45deg, #e08322 0%, #d5572b 25%, #cb1632 50%, #bb1255 75%, #ab0777 100%); 
}

.linkedin-btn { background: #0a66c2; }
.linkedin-btn:hover { background: #0952a5; }

.twitter-btn { background: #000000; }
.twitter-btn:hover { background: #1a1a1a; }

.telegram-btn { background: #229ed9; }
.telegram-btn:hover { background: #1e8bc3; }

.youtube-btn { background: #ff0000; }
.youtube-btn:hover { background: #e60000; }

.whatsapp-btn { background: #25d366; }
.whatsapp-btn:hover { background: #20bd5a; }

.copy-btn { 
    background: #6b7280; 
    border: 1px solid #d1d5db;
}
.copy-btn:hover { 
    background: #4b5563; 
    border-color: #9ca3af;
}

/* Calendar card specific styling */
.calendar-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Follow card specific styling */
.follow-card .card-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Share card specific styling */
.share-card .card-header {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Responsive design */
@media (max-width: 768px) {
    .actions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .action-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 40px;
    }
    
    .action-btn span {
        display: none;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .button-group {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .modern-conference-actions {
        margin: 20px 0;
    }
    
    .action-card {
        border-radius: 8px;
    }
    
    .card-header {
        padding: 12px 15px;
    }
    
    .card-header h3 {
        font-size: 15px;
    }
}

/* Conference List Container */
.conference-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Filter Form */
.conference-filters {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.conference-filters h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #23282d;
    font-size: 18px;
    font-weight: 600;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #23282d;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    height: auto !important;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.filter-actions {
    margin-top: 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 10px;
    line-height: 1.4;
}

.btn-primary {
    background: #0073aa;
    color: white;
}

.btn-primary:hover {
    background: #005a87;
    color: white;
}

.btn-secondary {
    background: #f1f1f1;
    color: #23282d;
    border: 1px solid #ccc;
}

.btn-secondary:hover {
    background: #e9e9e9;
    color: #23282d;
}

.btn-clear {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.btn-clear:hover {
    background: #f9f9f9;
    color: #666;
}

/* Conference Items */
.conference-list {
    display: grid;
    gap: 20px;
}

.conference-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.conference-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.conference-header {
    margin-bottom: 15px;
}

.conference-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.conference-title a {
    color: #0073aa;
    text-decoration: none;
}

.conference-title a:hover {
    color: #005a87;
    text-decoration: underline;
}

.conference-categories {
    margin-bottom: 10px;
}

.category-tag {
    display: inline-block;
    background: #e7f3ff;
    color: #0073aa;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 4px;
}

/* Conference Meta Information */
.conference-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.conference-meta > div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.conference-meta i {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Icons using CSS */
.icon-calendar::before {
    content: "📅";
}

.icon-location::before {
    content: "📍";
}

.icon-user::before {
    content: "👤";
}

.icon-status::before {
    content: "📊";
}

/* Event Status Styles */
.conference-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-upcoming {
    color: #28a745;
    font-weight: 500;
}

.status-ongoing {
    color: #ffc107;
    font-weight: 500;
}

.status-past {
    color: #6c757d;
    font-weight: 500;
}

.status-cancelled {
    color: #dc3545;
    font-weight: 500;
}

/* Conference Excerpt */
.conference-excerpt {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.5;
}

.conference-excerpt p:last-child {
    margin-bottom: 0;
}

/* Conference Actions */
.conference-actions {
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

/* Loading and Messages */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-conferences {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.error-message {
    background: #fff2f2;
    border: 1px solid #ffcccb;
    color: #d32f2f;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.success-message {
    background: #f0fff4;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* User Forms */
.conference-registration-form,
.conference-submission-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.conference-registration-form h3,
.conference-submission-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #23282d;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #23282d;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.form-group .required {
    color: #d32f2f;
}

.form-actions {
    text-align: center;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .conference-list-container {
        padding: 15px;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .conference-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .conference-actions .btn {
        display: block;
        margin-bottom: 10px;
        margin-right: 0;
        text-align: center;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .conference-registration-form,
    .conference-submission-form {
        margin: 0 15px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .conference-title {
        font-size: 18px;
    }
    
    .conference-filters {
        padding: 15px;
    }
    
    .conference-item {
        padding: 15px;
    }
}

/* Print Styles */
@media print {
    .conference-filters,
    .conference-actions {
        display: none;
    }
    
    .conference-item {
        border: 1px solid #000;
        margin-bottom: 20px;
        break-inside: avoid;
        box-shadow: none;
    }
    
    .conference-title a {
        color: #000;
        text-decoration: none;
    }
}

/* Conference Actions Styling */
.conference-actions-container {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e3e6ea;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.conference-action-section {
    margin-bottom: 25px;
}

.conference-action-section:last-child {
    margin-bottom: 0;
}

.action-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 5px;
    display: inline-block;
}

/* Calendar Section */
.calendar-section {
    text-align: center;
}

.action-dropdown {
    position: relative;
    display: inline-block;
}

.action-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.action-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 5px;
    border: 1px solid #e3e6ea;
}

.dropdown-content.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.dropdown-content a {
    color: #2c3e50;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: #3498db;
}

.calendar-icon {
    margin-right: 8px;
    font-size: 14px;
}

/* Social Links */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e3e6ea;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
}

.social-link.facebook:hover {
    background: #4267B2;
    color: white;
    border-color: #4267B2;
}

.social-link.twitter:hover {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
}

.social-link.linkedin:hover {
    background: #2867B2;
    color: white;
    border-color: #2867B2;
}

.social-link.instagram:hover {
    background: #E4405F;
    color: white;
    border-color: #E4405F;
}

.social-link.youtube:hover {
    background: #FF0000;
    color: white;
    border-color: #FF0000;
}

.social-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* Share Links */
.share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.share-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e3e6ea;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
}

.share-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
}

.share-link.facebook:hover {
    background: #4267B2;
    color: white;
    border-color: #4267B2;
}

.share-link.twitter:hover {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
}

.share-link.linkedin:hover {
    background: #2867B2;
    color: white;
    border-color: #2867B2;
}

.share-link.whatsapp:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.share-link.copy-link:hover {
    background: #9b59b6;
    color: white;
    border-color: #9b59b6;
}

.share-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* Conference Share Section */
.conference-share-section {
    margin: 40px 0;
    padding: 30px 0;
    background: #f8f9fa;
    border-radius: 12px;
}

.conference-share-section .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.conference-share-section .col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
}

.conference-share-section .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    margin-bottom: 1.5rem;
}

.conference-share-section .g-4 > * {
    padding: 0.75rem;
}

.docial-bg-white {
    background-color: #ffffff !important;
}

.rounded-4 {
    border-radius: 0.75rem !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.p-3 {
    padding: 1rem !important;
}

.text-center {
    text-align: center !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.d-flex {
    display: flex !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.justify-content-center {
    justify-content: center !important;
}

.gap-3 {
    gap: 1rem !important;
}

/* Icon buttons for share section */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-decoration: none;
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

.icon-btn.bg-primary {
    background-color: #3b5998 !important;
}

.icon-btn.bg-info {
    background-color: #0077b5 !important;
}

.icon-btn.bg-success {
    background-color: #25d366 !important;
}

.icon-btn.bg-dark {
    background-color: #000000 !important;
}

.icon-btn.bg-secondary {
    background-color: #6c757d !important;
}

.text-white {
    color: #ffffff !important;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .conference-share-section .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .conference-share-section .gap-3 {
        gap: 0.75rem !important;
    }
    
    .icon-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive Design for Conference Actions */
@media (max-width: 768px) {
    .conference-actions-container {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .social-links,
    .share-links {
        justify-content: flex-start;
        gap: 8px;
    }
    
    .social-link,
    .share-link {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .action-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .dropdown-content {
        min-width: 180px;
    }
    
    .action-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .social-links,
    .share-links {
        flex-direction: column;
        align-items: stretch;
    }
    
    .social-link,
    .share-link {
        justify-content: center;
        text-align: center;
    }
}
